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 timer; | |
| function load_and_resize() { | |
| if($('.diagram-details').length > 0) { | |
| $('.diagram-details .col-md-3').matchHeight({ | |
| property: 'min-height' | |
| }); | |
| } | |
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
| # Fatal error: Allowed memory size of 134217728 bytes exhausted (tried to allocate 3582064 bytes) in phar:///usr/local/bin/wp/vendor/composer/composer/src/Composer/Cache.php on line 92 | |
| # Reverted composer.json. | |
| # lets figure out why this is happening. If you are using regular command line, it is most likely controlled | |
| # via the system and not mamp or anything, unless you have a different shell setup. So we need to adjust the | |
| # system PHP | |
| php -i | grep memory | |
| # output may look like [memory_limit => 128M => 128M] |
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
| // for the movement and keeping it at a fixed position, | |
| // set elbottom to the height of the screen or the place where you want it to stick | |
| jQuery(function() { | |
| var $window = jQuery(window), | |
| $stickyEl = jQuery('.sidemenu'), | |
| elTop = $stickyEl.offset().top, | |
| elBottom = jQuery('.specials-wrapper').parent().next().offset().top - $stickyEl.height() - 20; | |
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
| // TODO: complete this object/class | |
| // The constructor takes in an array of items and a integer indicating how many | |
| // items fit within a single page | |
| function PaginationHelper(collection, itemsPerPage) { | |
| this.collection = collection; | |
| this.itemsPerPage = itemsPerPage; | |
| } |
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
| Process Details: | |
| 1. Edit .htaccess file. On Wordpress website, edit .htaccess in the root directory to include the following: | |
| mod_headers.c -- This may need to be added to apache. This is 99% of the time already loaded unless we get on some home grown servers (additional informaiton: http://stackoverflow.com/questions/8794566/how-to-check-mod-headers-and-mod-expires-modules-enabled-in-apache) | |
| Access-Control-Allow-Origin -- This is the domain that you will allow to access your files. This should be the hubspot domain. If you are using a sandbox domain you will need | |
| Access-Control-Allow-Methods -- This is the method you will be accessing the information from the domain. The most common method we should be using is "GET" (Additional Information: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Access-Control-Allow-Methods) | |
| nvIf Origin are replacing dev.domain.com and the domain informaiton in the SetEnvIf doing multiple domains: |
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
| function uncheckAllCheckboxes(checkboxes) { | |
| for(let i = 0; i < checkboxes.length; i++) { | |
| let checkbox = checkboxes[i]; | |
| if(checkbox.getAttribute('id') != 'list_87018' ) { | |
| checkbox.checked = 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
| @mixin breakpoint($point) { | |
| @if $point == desktopwide { | |
| @media (min-width: 77em) { | |
| @content ; | |
| } | |
| } | |
| @else if $point == desktop { | |
| @media (min-width: 64em) { | |
| @content ; | |
| } |
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
| // target your items to be checked for oprhans, | |
| // avoid header and footer areas to keep script quick | |
| let contentToCheck = [ | |
| '.content-wrapper p', | |
| '.content-wrapper h1', | |
| '.content-wrapper h2', | |
| '.content-wrapper h3', | |
| '.content-wrapper h4' | |
| ]; |
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
| /* | |
| install instructions: | |
| npm init -y | |
| npm install username gulp gulp-sass gulp-rename gulp-sourcemaps sass-include-paths gulp-plumber gulp-notify gulp-postcss autoprefixer fs copy-paste gulp-cached | |
| folder setup: | |
| html/ // i like working on my code in my editor so I have this | |
| gulpfile.js | |
| node_modules/ |
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
| //turned off so you don't accidently upload to the default portal | |
| var syncWithHubspot = false; | |
| var ftpFolder = ''; | |
| /* Gulp Variables */ | |
| const username = require('username'); | |
| var local = __dirname; | |
| var directories = local.split('/'); | |
| var repo = directories[directories.length - 1]; | |
| var user = username.sync(); |