Created
October 24, 2013 11:39
-
-
Save Prinzhorn/7135719 to your computer and use it in GitHub Desktop.
skrollr constants
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 initSkrollr() | |
{ | |
var constants = { | |
container: 400, //TODO delete | |
container2: 50, //TODO delete | |
pausingCumulative0 : 0, | |
pausingCumulative1 : getStartingPercentageOfSection(1), | |
pausingCumulative2 : getStartingPercentageOfSection(2), | |
pausingCumulative3 : getStartingPercentageOfSection(3), | |
pausingCumulative4 : getStartingPercentageOfSection(4), | |
pausingCumulative5 : getStartingPercentageOfSection(5), | |
pausingCumulative6 : getStartingPercentageOfSection(6), | |
pausingCumulative7 : getStartingPercentageOfSection(7), | |
pausingCumulative8 : getStartingPercentageOfSection(8), | |
pausingCumulative9 : getStartingPercentageOfSection(9), | |
pausingCumulative10 : getStartingPercentageOfSection(10), | |
pausingCumulative11 : getStartingPercentageOfSection(11), | |
pausingCumulative12 : getStartingPercentageOfSection(12), | |
pausingCumulative13 : getStartingPercentageOfSection(13), | |
pausingCumulative14 : getStartingPercentageOfSection(14), | |
pausingCumulative15 : getStartingPercentageOfSection(15), | |
pausingCumulative16 : getStartingPercentageOfSection(16), | |
pausingCumulative17 : getStartingPercentageOfSection(17), | |
pausingCumulative18 : getStartingPercentageOfSection(18), | |
pausingCumulative19 : getStartingPercentageOfSection(19), | |
pausingCumulative20 : getStartingPercentageOfSection(20), | |
pausingCumulative21 : getStartingPercentageOfSection(21), | |
pausingCumulative22 : getStartingPercentageOfSection(22), | |
pausingCumulative23 : getStartingPercentageOfSection(23), | |
pausingCumulative24 : getStartingPercentageOfSection(24), | |
pausingCumulative25 : getStartingPercentageOfSection(25), | |
pausingCumulative26 : getStartingPercentageOfSection(26), | |
pausingCumulative27 : getStartingPercentageOfSection(27), | |
pausingCumulative28 : getStartingPercentageOfSection(28), | |
pausingCumulative29 : getStartingPercentageOfSection(29), | |
pausingCumulative30 : getStartingPercentageOfSection(30), | |
pausingCumulative31 : getStartingPercentageOfSection(31), | |
pausingCumulative32 : getStartingPercentageOfSection(32), | |
pausingCumulative33 : getStartingPercentageOfSection(33), | |
pausingCumulative34 : getStartingPercentageOfSection(34), | |
pausingCumulative35 : getStartingPercentageOfSection(35), | |
pausing0 : 0, | |
pausing1 : getPausing(1,true), | |
pausing2 : getPausing(2,true), | |
pausing3 : getPausing(3,true), | |
pausing4 : getPausing(4,true), | |
pausing5 : getPausing(5,true), | |
pausing6 : getPausing(6,true), | |
pausing7 : getPausing(7,true), | |
pausing8 : getPausing(8,true), | |
pausing9 : getPausing(9,true), | |
pausing10 : getPausing(10,true), | |
pausing11 : getPausing(11,true), | |
pausing12 : getPausing(12,true), | |
pausing13 : getPausing(13,true), | |
pausing14 : getPausing(14,true), | |
pausing15 : getPausing(15,true), | |
pausing16 : getPausing(16,true), | |
pausing17 : getPausing(17,true), | |
pausing18 : getPausing(18,true), | |
pausing19 : getPausing(19,true), | |
pausing20 : getPausing(20,true), | |
pausing21 : getPausing(21,true), | |
pausing22 : getPausing(22,true), | |
pausing23 : getPausing(23,true), | |
pausing24 : getPausing(24,true), | |
pausing25 : getPausing(25,true), | |
pausing26 : getPausing(26,true), | |
pausing27 : getPausing(27,true), | |
pausing28 : getPausing(28,true), | |
pausing29 : getPausing(29,true), | |
pausing30 : getPausing(30,true), | |
pausing31 : getPausing(31,true), | |
pausing32 : getPausing(32,true), | |
pausing33 : getPausing(33,true), | |
pausing34 : getPausing(34,true), | |
pausing35 : getPausing(35,true), | |
pausingSum0 : 0, | |
pausingSum1 : getPausingSum(1), | |
pausingSum2 : getPausingSum(2), | |
pausingSum3 : getPausingSum(3), | |
pausingSum4 : getPausingSum(4), | |
pausingSum5 : getPausingSum(5), | |
pausingSum6 : getPausingSum(6), | |
pausingSum7 : getPausingSum(7), | |
pausingSum8 : getPausingSum(8), | |
pausingSum9 : getPausingSum(9), | |
pausingSum10 : getPausingSum(10), | |
pausingSum11 : getPausingSum(11), | |
pausingSum12 : getPausingSum(12), | |
pausingSum13 : getPausingSum(13), | |
pausingSum14 : getPausingSum(14), | |
pausingSum15 : getPausingSum(15), | |
pausingSum16 : getPausingSum(16), | |
pausingSum17 : getPausingSum(17), | |
pausingSum18 : getPausingSum(18), | |
pausingSum19 : getPausingSum(19), | |
pausingSum20 : getPausingSum(20), | |
pausingSum21 : getPausingSum(21), | |
pausingSum22 : getPausingSum(22), | |
pausingSum23 : getPausingSum(23), | |
pausingSum24 : getPausingSum(24), | |
pausingSum25 : getPausingSum(25), | |
pausingSum26 : getPausingSum(26), | |
pausingSum27 : getPausingSum(27), | |
pausingSum28 : getPausingSum(28), | |
pausingSum29 : getPausingSum(29), | |
pausingSum30 : getPausingSum(30), | |
pausingSum31 : getPausingSum(31), | |
pausingSum32 : getPausingSum(32), | |
pausingSum33 : getPausingSum(33), | |
pausingSum34 : getPausingSum(34), | |
pausingSum35 : getPausingSum(35) | |
}; | |
s = skrollr.init({ | |
constants: constants | |
}); | |
} |
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 initSkrollr() | |
{ | |
var constants = {}; | |
constants.pausingCumulative0 = 0; | |
constants.pausingCumulative1 = getStartingPercentageOfSection(1); | |
constants.pausingCumulative2 = getStartingPercentageOfSection(2); | |
constants.pausingCumulative3 = getStartingPercentageOfSection(3); | |
constants.pausingCumulative4 = getStartingPercentageOfSection(4); | |
constants.pausingCumulative5 = getStartingPercentageOfSection(5); | |
constants.pausingCumulative6 = getStartingPercentageOfSection(6); | |
constants.pausingCumulative7 = getStartingPercentageOfSection(7); | |
constants.pausingCumulative8 = getStartingPercentageOfSection(8); | |
constants.pausingCumulative9 = getStartingPercentageOfSection(9); | |
constants.pausingCumulative10 = getStartingPercentageOfSection(10); | |
constants.pausingCumulative11 = getStartingPercentageOfSection(11); | |
constants.pausingCumulative12 = getStartingPercentageOfSection(12); | |
constants.pausingCumulative13 = getStartingPercentageOfSection(13); | |
constants.pausingCumulative14 = getStartingPercentageOfSection(14); | |
constants.pausingCumulative15 = getStartingPercentageOfSection(15); | |
constants.pausingCumulative16 = getStartingPercentageOfSection(16); | |
constants.pausingCumulative17 = getStartingPercentageOfSection(17); | |
constants.pausingCumulative18 = getStartingPercentageOfSection(18); | |
constants.pausingCumulative19 = getStartingPercentageOfSection(19); | |
constants.pausingCumulative20 = getStartingPercentageOfSection(20); | |
constants.pausingCumulative21 = getStartingPercentageOfSection(21); | |
constants.pausingCumulative22 = getStartingPercentageOfSection(22); | |
constants.pausingCumulative23 = getStartingPercentageOfSection(23); | |
constants.pausingCumulative24 = getStartingPercentageOfSection(24); | |
constants.pausingCumulative25 = getStartingPercentageOfSection(25); | |
constants.pausingCumulative26 = getStartingPercentageOfSection(26); | |
constants.pausingCumulative27 = getStartingPercentageOfSection(27); | |
constants.pausingCumulative28 = getStartingPercentageOfSection(28); | |
constants.pausingCumulative29 = getStartingPercentageOfSection(29); | |
constants.pausingCumulative30 = getStartingPercentageOfSection(30); | |
constants.pausingCumulative31 = getStartingPercentageOfSection(31); | |
constants.pausingCumulative32 = getStartingPercentageOfSection(32); | |
constants.pausingCumulative33 = getStartingPercentageOfSection(33); | |
constants.pausingCumulative34 = getStartingPercentageOfSection(34); | |
constants.pausingCumulative35 = getStartingPercentageOfSection(35); | |
constants.pausing0 = 0; | |
constants.pausing1 = getPausing(1,true); | |
constants.pausing2 = getPausing(2,true); | |
constants.pausing3 = getPausing(3,true); | |
constants.pausing4 = getPausing(4,true); | |
constants.pausing5 = getPausing(5,true); | |
constants.pausing6 = getPausing(6,true); | |
constants.pausing7 = getPausing(7,true); | |
constants.pausing8 = getPausing(8,true); | |
constants.pausing9 = getPausing(9,true); | |
constants.pausing10 = getPausing(10,true); | |
constants.pausing11 = getPausing(11,true); | |
constants.pausing12 = getPausing(12,true); | |
constants.pausing13 = getPausing(13,true); | |
constants.pausing14 = getPausing(14,true); | |
constants.pausing15 = getPausing(15,true); | |
constants.pausing16 = getPausing(16,true); | |
constants.pausing17 = getPausing(17,true); | |
constants.pausing18 = getPausing(18,true); | |
constants.pausing19 = getPausing(19,true); | |
constants.pausing20 = getPausing(20,true); | |
constants.pausing21 = getPausing(21,true); | |
constants.pausing22 = getPausing(22,true); | |
constants.pausing23 = getPausing(23,true); | |
constants.pausing24 = getPausing(24,true); | |
constants.pausing25 = getPausing(25,true); | |
constants.pausing26 = getPausing(26,true); | |
constants.pausing27 = getPausing(27,true); | |
constants.pausing28 = getPausing(28,true); | |
constants.pausing29 = getPausing(29,true); | |
constants.pausing30 = getPausing(30,true); | |
constants.pausing31 = getPausing(31,true); | |
constants.pausing32 = getPausing(32,true); | |
constants.pausing33 = getPausing(33,true); | |
constants.pausing34 = getPausing(34,true); | |
constants.pausing35 = getPausing(35,true); | |
constants.pausingSum0 = 0; | |
constants.pausingSum1 = getPausingSum(1); | |
constants.pausingSum2 = getPausingSum(2); | |
constants.pausingSum3 = getPausingSum(3); | |
constants.pausingSum4 = getPausingSum(4); | |
constants.pausingSum5 = getPausingSum(5); | |
constants.pausingSum6 = getPausingSum(6); | |
constants.pausingSum7 = getPausingSum(7); | |
constants.pausingSum8 = getPausingSum(8); | |
constants.pausingSum9 = getPausingSum(9); | |
constants.pausingSum10 = getPausingSum(10); | |
constants.pausingSum11 = getPausingSum(11); | |
constants.pausingSum12 = getPausingSum(12); | |
constants.pausingSum13 = getPausingSum(13); | |
constants.pausingSum14 = getPausingSum(14); | |
constants.pausingSum15 = getPausingSum(15); | |
constants.pausingSum16 = getPausingSum(16); | |
constants.pausingSum17 = getPausingSum(17); | |
constants.pausingSum18 = getPausingSum(18); | |
constants.pausingSum19 = getPausingSum(19); | |
constants.pausingSum20 = getPausingSum(20); | |
constants.pausingSum21 = getPausingSum(21); | |
constants.pausingSum22 = getPausingSum(22); | |
constants.pausingSum23 = getPausingSum(23); | |
constants.pausingSum24 = getPausingSum(24); | |
constants.pausingSum25 = getPausingSum(25); | |
constants.pausingSum26 = getPausingSum(26); | |
constants.pausingSum27 = getPausingSum(27); | |
constants.pausingSum28 = getPausingSum(28); | |
constants.pausingSum29 = getPausingSum(29); | |
constants.pausingSum30 = getPausingSum(30); | |
constants.pausingSum31 = getPausingSum(31); | |
constants.pausingSum32 = getPausingSum(32); | |
constants.pausingSum33 = getPausingSum(33); | |
constants.pausingSum34 = getPausingSum(34); | |
constants.pausingSum35 = getPausingSum(35; | |
s = skrollr.init({ | |
constants: constants | |
}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment