Awards 2019
Contact
Home
Intranet
Asana Instructions
Standards
General Information
Project Instructions
Revit Information
Systems
Tech
Landing
Projects
Services
Studio
No posts
You have no posts in your blog. Start adding some posts in your dashboard.
07 839 0095
office@edwardswhite.co.nz
07 839 0095
office@edwardswhite.co.nz
07 839 0095
office@edwardswhite.co.nz
The Mezzanine
The Riverbank Lane
298 Victoria Street
Hamilton
The Mezzanine
The Riverbank Lane
298 victoria street
Hamilton
The Mezzanine
The Riverbank Lane
298 victoria street
Hamilton
--> After Body tag: Dif and restore: admin_editor_modules_portfoliogrid_backup.php *** */ $(window).ready(function(){ // Splash var store = webStorage.createInstance({ name: 'EWSplash' }); var nowStamp = function(){ return Math.floor(Date.now() / 1000); } var setToken = function(){ var splashScreenTimeout = 10; // In minutes var newToken = nowStamp() + (splashScreenTimeout * 60) store.setItem('token', newToken); } var splashToken = store.getItem('token'); var showSplash = true; if(!splashToken){ setToken(); }else{ if(nowStamp() >= splashToken){ setToken(); }else{ showSplash = false; } } if(showSplash){ $('.splashScreen').show(); } $('.splashScreen').on('click', function(){ $(this).fadeOut(300); }); // Work Link Overlay $overlayClone = $('.workLinkOverlay').clone(); $overlayClone.appendTo('body'); // Filter $('.filterCategories .toggleFilter').on('click', function(){ var $parent = $(this).parent(); if(!$parent.hasClass('expanded')){ $parent.addClass('expanded'); $parent.children('ul.options').stop(true, true).slideDown(300); }else{ $parent.removeClass('expanded'); $parent.children('ul.options').stop(true, true).slideUp(300); } return false; }); $('.filterCategories > ul.options > li > a').on('click', function(){ if(!$(this).hasClass('selected')){ $(this).parent().siblings().children('.selected').removeClass('selected'); $(this).addClass('selected'); var $upperParent = $(this).parents('.column-content'); var $masonry = $upperParent.find('.masonry'); var category = $(this).attr('data-category'); var waitAnimate = 10; $masonry.children('.masonry-item').removeClass('visible-item'); if(category){ var categoryClass = '.category_' + category; $masonry.children('.masonry-item').not(categoryClass).hide(); $masonry.children(categoryClass).show(); setTimeout(function(){ $masonry.children(categoryClass).addClass('visible-item'); },waitAnimate) }else{ $masonry.children('.masonry-item').show(); setTimeout(function(){ $masonry.children('.masonry-item').addClass('visible-item'); },waitAnimate) } $masonry.masonry(); } return false; }); $('.single-project .masonry').each(function(){ var $condensedList = $('
'); var idList = []; var pageCategories = $('body').attr('data-categories').split(" "); var pageID = $('body').attr('data-page-id'); $(this).children('.masonry-item').each(function(){ var $item = $(this); var categories = $(this).attr('data-categories').split(" "); var id = $(this).attr('id'); var remove = true; if($(this).attr("id") !== "project-" + pageID){ $.each(categories, function(i, cat){ if(pageCategories.indexOf(cat) > -1 && idList.indexOf(id) === -1 && idList.length <= 2){ idList.push(id); remove = false; } }); } if(remove){ $(this).remove(); } }); $(this).masonry(); }); });