-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
Different Locker Lock Types, Pros and Cons
Read more
News, Design, Style, Tips
Reduce Noise in an Open Office Setting With These Tips
Read more
News, Design, Style, Tips
How to Choose the Perfect Reception Desk for Your Office
Read more
News, Design, Style, Tips
Why It Is Important To Have The Right Office Furniture
Read more
News, Design, Style, Tips
3 Ergonomic Tips to Enhance Your Employees’ Work Habits
Read more
News, Design, Style, Tips
The Benefits of Using Ergonomic Furniture
Read more
News, Design, Style, Tips
3 Things You Need to Consider for the Perfect Meeting Room
Read more
News, Design, Style, Tips
4 Ways to Make the Most Out of Your Adjustable Office Desk
Read more
News, Design, Style, Tips
5 Reasons Why You Should Invest in Acoustic Office Furniture
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