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
| var stylesheet_url_to_remove = 'https://static.hsstatic.net/content_shared_assets/static-1.4040/css/public_common.css'; | |
| $('head').find('link').each(function() { | |
| var current_stylesheet = $(this).attr('href'); | |
| if(current_stylesheet == stylesheet_url_to_remove) $(this).remove() | |
| }); |
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
| {% set queryone = hubdb_table_rows(111111, "&orderBy=last_name") %} | |
| {% set querytwo = hubdb_table_rows(222222, "&orderBy=sandwich") %} | |
| <div class="content"> | |
| {% set counter = 0 %} | |
| {% for row in queryone %} | |
| <div class="col-md-4 resource-container"> | |
| <img class="reponsive" src="{{ row.image.url }}"> | |
| </div> | |
| {% if loop.index == 10 %} | |
| <div class="col-md-4 cta-container"> |
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
| {# RENDER READ TIME #} | |
| {% macro render_read_time(body) %} | |
| {% set str = body|lower %} | |
| {% set img_count = str|split('<img')|length %} | |
| {% set img_minutes = ((img_count * 12) / 60)|round(0, 'common') %} | |
| {% set read_time = (str|striptags|wordcount / 275)|round(0, 'common') + img_minutes %} | |
| {{ read_time|string|trim ~ ' ' ~ render_read_time_suffix()|trim }} | |
| {% endmacro %} | |
| {# And here's the meta info for the <head> of the custom template... #} |
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
| var base_url = 'https://www.gliffy.com'; | |
| $.ajax({ | |
| url: base_url + "/go/api/user.json", | |
| dataType: 'json', | |
| }).done(function(data) { | |
| console.log('done') | |
| console.log(data); | |
| }).fail(function(jqXHR) { | |
| console.log('fail') | |
| console.log(jqXHR) |
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
| /* Append column headers to top*/ | |
| $('.editor-wrapper').append('<div class="fixed-header" style="overflow: visible; min-height: 60px;">'); | |
| $('.editor-header-cell').css('position','absolute').css('top','0px').css('z-index','999').clone().appendTo('.fixed-header'); | |
| /* Tracks horizontal scrolling */ | |
| $('.ReactVirtualized__Grid').on('scroll', function(){ | |
| $('.fixed-header').offset({ left: $('.ReactVirtualized__Grid__innerScrollContainer').offset().left }); | |
| }); |
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
| /* | |
| * Calls fix if user input is all lower case. This prevents changes from | |
| * happening if the user's name has different case changes like leFlour | |
| */ | |
| function check_name(input) { | |
| if(input == input.toLowerCase()) { | |
| return fix_name(input); |
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
| .flex-wrapper { | |
| display: -ms-flexbox; | |
| display: flex; | |
| display: -webkit-flexbox; | |
| display: -webkit-flex; | |
| -ms-flex-pack: center; | |
| justify-content: center; | |
| flex-direction: row; | |
| // padding: 0; | |
| @media#{$phone}{ |
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
| var $sidebar_container = $('.custom-mobile-left-sidebar'); | |
| var has_three_column = $('.three-column-equal').length > 0 ? true : false; | |
| var $content_container = $('h1').parent(); | |
| var sidebar_is_swapped = false; | |
| function move_sidebar_if_mobile() { | |
| var wwidth = $(window).width(); | |
| if(wwidth <= 767 && sidebar_is_swapped == false) { |
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
| $.fn.extend({ | |
| fancy_slider: function() { | |
| var slider = { | |
| el: { | |
| slider: $(this).find('.slider-wrapper'), | |
| holder: $(this).find('.slider-container'), | |
| imgSlide: $(this).find('.slide'), | |
| slider_nav: $(this).find('.slider-nav'), | |
| all_nav_buttons: $(this).find('.slider-nav > a'), | |
| title_navigation: $(this).find('.product-tab') |