This file contains 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
/* | |
eslint no-underscore-dangle: 0, max-len: 0, prefer-destructuring: 0, no-nested-ternary: 0 | |
*/ | |
import TweenMax from 'gsap/TweenMax'; | |
import TimelineMax from 'gsap/TimelineMax'; | |
import * as ScrollWizardry from 'scrollwizardry'; | |
// import * as ScrollWizardry from '../../scrollwizardry/src'; | |
const { Controller, Scene } = ScrollWizardry; |
This file contains 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
export function imgResolver(resourceProvider: ResourceProvider) { | |
const preloadImgs: string[] = ['/assets/bg_color.jpg', '/assets/bg_bw.jpg']; | |
return new Promise(function (resolve) { | |
const preloadImage = (img: HTMLImageElement) => console.log(img.src + ' loaded!'); | |
const preloadError = (err: Error) => console.log('Preload Error!' + err); | |
const preloadComplete = () => setTimeout(resolve, 0); |
This file contains 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
export function imgResolver(resourceProvider: ResourceProvider) { | |
const preloadImgs: string[] = ['/assets/bg_color.jpg', '/assets/bg_bw.jpg']; | |
return new Promise(function (resolve) { | |
const preloadImage = (img: HTMLImageElement) => console.log(img.src + ' loaded!'); | |
const preloadError = (err: Error) => console.log('Preload Error!' + err); | |
const preloadComplete = () => setTimeout(resolve, 0); |
This file contains 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
// Type definitions for GreenSock Animation Platform 1.15.1 | |
// Project: http://www.greensock.com/get-started-js/ | |
// Definitions by: Robert S <https://github.com/codebelt> | |
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | |
// JavaScript Docs http://api.greensock.com/js/ | |
// Version 1.15.1 (TypeScript 1.4) | |
interface IDispatcher { | |
addEventListener(type:string, callback:Function, scope?:Object, useParam?:boolean, priority?:number):void; |
This file contains 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
<?php | |
/** | |
* This function takes in a color string and test whether it is in hex format. | |
* If so it will simply return a '#' prefixed version to make it the standard | |
* hex format, or return it as-is. | |
* | |
* This is done to make linking to this file within css a bit easier, since we'd | |
* need to escape the '#' so the browser doesn't treat it as a hash and ignore | |
* it when requesting content. Otherwise users would have to link using: | |
* |
This file contains 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
4d5a 0000 0000 0000 0000 0000 0000 0000 | |
0000 0000 0000 0000 0000 0000 0000 0000 | |
0000 0000 0000 0000 0000 0000 0000 0000 | |
0000 0000 0000 0000 0000 0000 8000 0000 | |
0000 0000 0000 0000 0000 0000 0000 0000 | |
0000 0000 0000 0000 0000 0000 0000 0000 | |
0000 0000 0000 0000 0000 0000 0000 0000 | |
0000 0000 0000 0000 0000 0000 0000 0000 | |
5045 0000 6486 0400 0000 0000 0000 0000 | |
0000 0000 f000 2e00 0b02 0000 e004 0000 |
This file contains 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
[[!If? | |
&subject=`[[*mainImage]]` | |
&operator=`null` | |
&then=`<div>[[*content]]</div>` | |
&else=`<div>[[*blahblah]]</div>` | |
]] |
This file contains 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
[[!getResources? &parents=`23` &tpl=`homepage_slider` &includeContent=`1` &showUnpublished=`0` &showHidden=`1` &processTVs=`1` &includeTVs=`1` &tvPrefix=`` &sortdir=`ASC` &sortby=`[[!getResourcesTree? &parents=`23`]]` &limit=`0` &depth=`0`]] |
This file contains 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
[[Wayfinder? &startId=`0` &outerTpl=`menuContainer` &rowTpl=`menu_row` &innerTpl=`menu_inner` &cacheResults=`1` level=`3`]] |
This file contains 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
[[!getResources? &parents=`2` &tpl=`thumbnail` &includeContent=`1` &showUnpublished=`1` &showHidden=`1` &processTVs=`1` &includeTVs=`1` &tvPrefix=`` &sortdir=`ASC` &sortby=`[[!getResourcesTree? &parents=`2`]]` &limit=`0` &depth=`0`]] |
NewerOlder