-1) {
var s = strcode.indexOf("", e);
// Add to scripts array
scripts.push(strcode.substring(s_e+1, e));
// Strip from strcode
strcode = strcode.substring(0, s) + strcode.substring(e_e+1);
}
// Loop through every script collected and eval it
for(var i=0; i 0) ||
(navigator.msMaxTouchPoints > 0)) {
var $tooltips = jQuery("div.addToQuoteCart svg:not(.tooltipready)");
jQuery($tooltips).each(function(){
jQuery(this).addClass("tooltipready");
jQuery(this).tooltip({
position: {
using: function(position, feedback) {
console.log(feedback);
jQuery(this).css(position);
jQuery(this).addClass(feedback.vertical);
}
}
});
});
}
});
return;
};
function activatePopup() {
jQuery(document).ready(function(){
var $products = jQuery(".ui-button-enquire:not(.popupready)");
jQuery($products).each(function(){
jQuery(this).addClass("popupready");
jQuery(this).click(function(event){
event.preventDefault();
jQuery(this).blur();
jQuery("#gfoverlay").fadeIn();
var pid = jQuery(this).attr("data-pid");
var gid = jQuery(this).attr("data-gid");
console.log([pid,gid]);
jQuery.ajax({
url: 'https://auroraofficefurniture.com.au/wp-admin/admin-ajax.php',
type:"post",
data : {action: "getGF", pid : pid, gid:gid},
success: function(data) {
jQuery("#gfoverlay").fadeOut();
parseScript(data);
data = jQuery(data).not(".gfield_label");
jQuery(data).find("form").attr('action', '/#gf_'+gid);
jQuery("#dialog-form"+pid).html(data).dialog({
modal:true,
width: "60%",
resizable: false,
draggable: false,
closeOnEscape: true,
open: function() {
jQuery('.ui-widget-overlay').addClass('custom-overlay');
}
}).dialog('open');
}
});
});
});
});
};
activateTooltip();
activatePopup();
function mutate(mutations) {
mutations.forEach(function(mutation) {
console.log(mutation.type);
activatePopup();
});
}
var target = document.getElementById("woo-grid");
var observer = new MutationObserver( mutate );
var config = { characterData: false, attributes: false, childList: true, subtree: false };
observer.observe(target, config);
News, Design, Style, Tips
How to Pick the Best Office Furniture | What You Need to Know
Read more
News, Design, Style, Tips
Design That Inspires | 3 Ways to Integrate Your Brand’s Values in Your Office Space
Read more
News, Design, Style, Tips
Chasing the Best Career Life | How to Successfully Create a Happy Workplace
Read more
News, Design, Style, Tips
How to Promote Socialising at Work [guide]
Read more
News, Design, Style, Tips
3 Ways Quality Office Furniture Boost Employee Morale and Productivity
Read more
News, Design, Style, Tips
4 Distractions to Remove from Your Office
Read more
News, Design, Style, Tips
How We Are Affected by Noise at Work
Read more
News, Design, Style, Tips
How to Pick the Perfect Office Plant
Read more
News, Design, Style, Tips
5 Benefits of having plants in office
Read more
News, Design, Style, Tips
5 Proven Health Benefits of Standing
Read more
News, Design, Style, Tips
Considerations for Covid Safe Workspaces
Read more
News, Design, Style, Tips
Best rated standing adjustable desks
Read more