Reklama na webu | Ujob
Reklama na webu
O umístění reklamy na portálu napište na info.ujob@gmail.com
Nahoru
Používáme cookies, viz Podmínky používání služeb. A také chráníme vaše osobní údaje, viz Zásady ochrany osobních
údajů
Рады видеть Вас на сайте ujob.cz!
Ujob spojuje zákazníky s poskytovateli služeb
Celkem poskytovatelů
1205
Array
(
[3] => Array
(
[0] => $(function(){
app.init({adm: false, host:'ujob.cz', root: 'https://ujob.cz/', rootStatic: '//ujob.cz',
cookiePrefix: 'bff_', regionPreSuggest: [], lng: 'cs',
lang: {"form_btn_loading":"Čekejte...","form_alert_errors":"Při vyplňování formuláře došlo k následujícím chybám:","form_alert_required":"Vyplňte všechna označená pole"},
mapType: 'google',
logined: false,
device: 'desktop'
});
});
[1] => var curLang = 'cs';
[2] => var curLang = 'cs';
[3] => var curLang = 'cs';
[4] => firebase.initializeApp({
messagingSenderId: '735264112174'
});
if ('Notification' in window) {
var messaging = firebase.messaging();
messaging.onMessage(function (payload) {
navigator.serviceWorker.register('https://ujob.cz/p0030a8_sw.js');
Notification.requestPermission(function (result) {
if (result === 'granted') {
navigator.serviceWorker.ready.then(function (registration) {
payload.notification.data = payload.notification;
registration.showNotification(payload.notification.title, payload.notification);
}).catch(function (error) {
});
}
});
});
}
function subscribe() {
messaging.requestPermission()
.then(function () {
messaging.getToken()
.then(function (currentToken) {
if (currentToken) {
sendTokenToServer(currentToken);
} else {
setTokenSentToServer(false);
}
})
.catch(function (err) {
setTokenSentToServer(false);
});
})
.catch(function (err) {
});
}
function sendTokenToServer(currentToken) {
if (!isTokenSentToServer(currentToken)) {
bff.ajax('https://ujob.cz/firebase-subscribe/', {token:currentToken}, function (data, error) {});
setTokenSentToServer(currentToken);
}
}
function isTokenSentToServer(currentToken) {
return window.localStorage.getItem('sentFirebaseMessagingToken') == currentToken;
}
function setTokenSentToServer(currentToken) {
window.localStorage.setItem(
'sentFirebaseMessagingToken',
currentToken ? currentToken : ''
);
}
[5] => jOrdersCats.init();
[6] => $(function () {
//$(document).on('touchstart', '.btn', function(e){ return false; /* e.stopPropagation(); e.preventDefault(); return false; $(this).click(); */ });
$(document).on('change', 'input[type=checkbox][name=enotify_sendmail]', function () {
$.post(bff.ajaxURL('users', 'update'), {enotify_sendmail: this.checked ? 1 : 0}, function (res) {
});
});
});
jQuery(document).ready(function () {
if (document.location.hash.length > 1) {
console.log('HREF Hash to:' + document.location.hash);
jQuery('[href=' + document.location.hash + ']').trigger('click');
}
});
jQuery('a[href].j-hash').on('click', function (e) {
if (this.href.split('#')[0] != document.location.href) return true;
console.log('HashHash to:' + this.href);
//jQuery('[href='+this.hash+']').trigger('click');
});
jQuery('a[href].j-confirm').on('click', function (e) {
try {
return confirm(this.innerText + '?');
} catch (e) {
}
return true;
});
jQuery('a[href^="#"].j-toggle').on('click', function (e) {
jQuery(this.attributes.href.value).toggle();
e.stopPropagation();
return false;
});
)
)