-
-
Save elizad/7ee8170d1fd7adcdb81d00648a9c1329 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
(function () { | |
var showHideJobFilter = function () { | |
if ($(window).width() < 801 && !$('#refine-search-box-inner').hasClass("mobile-active")) { | |
$('#refine-search-box-inner').addClass('mobile-active').css({ 'display': 'none' }); | |
} | |
else if ($(window).width() >= 801 && $('#refine-search-box-inner').hasClass("mobile-active")) { | |
$('#refine-search-box-inner').removeClass('mobile-active').css({ 'display': 'none' }); | |
} | |
}; | |
$('.refine-search-box').on('click', | |
function () { | |
$('#refine-search-box-inner').toggle(); | |
} | |
); | |
showHideJobFilter(); | |
window.addEventListener("resize", showHideJobFilter ); | |
var openMenu = function() { | |
$('').addClass('.is-active .label-open '); | |
}; | |
$('button.show-menu').on('click', | |
function() { | |
$('button.show-menu').toggleClass('is-active label-open ').fadeIn(500); | |
$('.header-bg.fading').addClass('resize').css('opacity', '1'); | |
$('.toggle-menu-wrapper').toggleClass('is-active').css('z-index', ' 1').fadeIn(500); | |
$('.toggle-menu').toggleClass('open').fadeIn(500); | |
}); | |
$('#AboutUs.toggle-sub-list').on('click', | |
function() { | |
$('#ulAboutUs.toggle-menu-sub-list').toggleClass('open').toggle(); | |
$('#AboutUs.toggle-sub-list').toggleClass('label-open').fadeIn(500); | |
} | |
); | |
$('#Specialism.toggle-sub-list').on('click', | |
function () { | |
$('#ulSpecialism.toggle-menu-sub-list').toggleClass('open').toggle(); | |
$('#Specialism.toggle-sub-list').toggleClass('label-open').fadeIn(500); | |
} | |
); | |
$('#News.toggle-sub-list').on('click', | |
function () { | |
$('#ulNews.toggle-menu-sub-list').toggleClass('open').toggle(); | |
$('#News.toggle-sub-list').toggleClass('label-open').fadeIn(500); | |
} | |
); | |
$("#formButton").click(function() { | |
$("#form1").toggle(); | |
}); | |
var resizeEventResizeElements = function() { | |
var snpHomeBannerW = $(window).height() / 7; | |
var snpHomeBannerImageH = $(".snp-homebanner").height(); | |
console.log ( snpHomeBannerW + snpHomeBannerImageH ); | |
$(".snp-imagehomebanner").css({ | |
'height': snpHomeBannerImageH + snpHomeBannerW + 'px' | |
}); | |
}; | |
window.addEventListener('resize', resizeEventResizeElements); | |
var $buoop = { required: { e: -2, f: -1, o: -1, s: -1, c: -3 }, insecure: true, api: 2019.01 }; | |
function $buo_f() { | |
var e = document.createElement("script"); | |
e.src = "//browser-update.org/update.min.js"; | |
document.body.appendChild(e); | |
} | |
try { | |
document.addEventListener("DOMContentLoaded", $buo_f, false); | |
} catch (e) { | |
window.attachEvent("onload", $buo_f); | |
} | |
})(); | |
function buildCC() { | |
var e = document.createElement("link"); | |
e.href = "/css/cookiePopUp.css", e.type = "text/css", e.rel = "stylesheet"; var c = document.createElement("div"); | |
c.className = "cc-pop", c.innerHTML = "<div class='cc-wrap'><div class='cc-close'><a onclick='ccClose()'>Close</a></div><div class='cc-h'>What about Cookies? </div><div class='cc-flex'> <div class='cc-p-cont'> <div class='cc-p'>By continuing to browse, you consent to our policy regarding the use of cookies. </div><div class='cc-p-sm'>To know more, please refer to our <a href='/Home/PrivacyPolicy' target='_blank'>Privacy Policy.</a></div></div><div class='cc-th'><a onclick='ccClose()'>OK</a></div></div></div>", document.head.appendChild(e), document.body.appendChild(c), setTimeout(function (e) { document.querySelector(".cc-pop").classList.add("active"); }, 3e3); | |
} | |
function getCookie(e) { | |
for (var c = e + "=", o = decodeURIComponent(document.cookie).split(";"), t = 0; t < o.length; t++) { | |
for (var i = o[t]; | |
" " === i.charAt(0);) i = i.substring(1); if (0 === i.indexOf(c)) return i.substring(c.length, i.length); | |
} return !1; | |
} | |
function ccClose() { | |
document.cookie = "SBCC=True; expires=Thu, 31 Dec 2999 12:00:00 UTC; path=/", | |
document.querySelector(".cc-pop").classList.add("removed"), | |
setTimeout(function () { document.querySelector(".cc-pop").remove(); }, 3e3); | |
} | |
function checkCC() { getCookie("SBCC") || buildCC(); } checkCC(); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment