flowtime-rails 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/flowtime-rails/version.rb +1 -1
- data/vendor/assets/javascripts/flowtime.js +130 -129
- metadata +1 -1
@@ -1,4 +1,5 @@
|
|
1
|
-
|
1
|
+
/*
|
2
|
+
*= require 'brav1toolbox'
|
2
3
|
* Flowtime.js
|
3
4
|
* http://marcolago.com/flowtime-js/
|
4
5
|
* MIT licensed
|
@@ -13,13 +14,13 @@ var Flowtime = (function ()
|
|
13
14
|
* test if the device is touch enbled
|
14
15
|
*/
|
15
16
|
var isTouchDevice = 'ontouchstart' in document.documentElement;
|
16
|
-
|
17
|
+
|
17
18
|
/**
|
18
19
|
* test if the HTML History API's where available
|
19
20
|
* this value can be overridden to disable the History API
|
20
21
|
*/
|
21
22
|
var pushHistory = window.history.pushState;
|
22
|
-
|
23
|
+
|
23
24
|
/**
|
24
25
|
* application constants
|
25
26
|
*/
|
@@ -53,7 +54,7 @@ var Flowtime = (function ()
|
|
53
54
|
var useHash = false; // if true the engine uses only the hash change logic
|
54
55
|
var currentHash = ""; // the hash string of the current section / page pair
|
55
56
|
var pastIndex = { section:0, page:0 }; // section and page indexes of the past page
|
56
|
-
var isOverview = false; // Boolean status for the overview
|
57
|
+
var isOverview = false; // Boolean status for the overview
|
57
58
|
var siteName = document.title; // cached base string for the site title
|
58
59
|
var overviewCachedDest; // caches the destination before performing an overview zoom out for navigation back purposes
|
59
60
|
var overviewFixedScaleFactor = 22; // fixed scale factor for overview variant
|
@@ -69,7 +70,7 @@ var Flowtime = (function ()
|
|
69
70
|
var _parallaxInPx = false; // if false the parallax movement is calulated in % values, if true in pixels
|
70
71
|
var defaultParallaxX = 50; // the default parallax horizontal value used when no data-parallax value were specified
|
71
72
|
var defaultParallaxY = 50; // the default parallax vertical value used when no data-parallax value were specified
|
72
|
-
|
73
|
+
|
73
74
|
var parallaxEnabled = document.querySelector(".parallax") != null; // performance tweak, if there is no elements with .parallax class disable the dom manipulation to boost performances
|
74
75
|
|
75
76
|
|
@@ -102,20 +103,20 @@ var Flowtime = (function ()
|
|
102
103
|
}
|
103
104
|
|
104
105
|
/*
|
105
|
-
## ## ### ## ## #### ###### ### ######## #### ####### ## ## ## ## ### ######## ######## #### ## ##
|
106
|
-
### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ### ### ## ## ## ## ## ## ## ##
|
107
|
-
#### ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## #### #### ## ## ## ## ## ## ## ##
|
108
|
-
## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ######## ## ###
|
109
|
-
## #### ######### ## ## ## ## ## ######### ## ## ## ## ## #### ## ## ######### ## ## ## ## ## ##
|
110
|
-
## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ##
|
111
|
-
## ## ## ## ### #### ###### ## ## ## #### ####### ## ## ## ## ## ## ## ## ## #### ## ##
|
106
|
+
## ## ### ## ## #### ###### ### ######## #### ####### ## ## ## ## ### ######## ######## #### ## ##
|
107
|
+
### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ### ### ## ## ## ## ## ## ## ##
|
108
|
+
#### ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## #### #### ## ## ## ## ## ## ## ##
|
109
|
+
## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ######## ## ###
|
110
|
+
## #### ######### ## ## ## ## ## ######### ## ## ## ## ## #### ## ## ######### ## ## ## ## ## ##
|
111
|
+
## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ##
|
112
|
+
## ## ## ## ### #### ###### ## ## ## #### ####### ## ## ## ## ## ## ## ## ## #### ## ##
|
112
113
|
*/
|
113
114
|
|
114
115
|
/**
|
115
116
|
* NavigationMatrix is the Object who store the navigation grid structure
|
116
117
|
* and which expose all the methods to get and set the navigation destinations
|
117
118
|
*/
|
118
|
-
|
119
|
+
|
119
120
|
var NavigationMatrix = (function ()
|
120
121
|
{
|
121
122
|
var sections; // HTML Collection of .flowtime > .ft-section elements
|
@@ -133,7 +134,7 @@ var Flowtime = (function ()
|
|
133
134
|
var pCache = 0; // cache index of the current section
|
134
135
|
var spCache = 0; // cache index of the current page
|
135
136
|
var hilited; // the current page higlighted, useful for overview mode
|
136
|
-
|
137
|
+
|
137
138
|
/**
|
138
139
|
* update the navigation matrix array
|
139
140
|
* this is a publicy exposed method
|
@@ -261,7 +262,7 @@ var Flowtime = (function ()
|
|
261
262
|
_sp.y = _sp.offsetTop + _sp.parentNode.offsetTop;
|
262
263
|
}
|
263
264
|
};
|
264
|
-
|
265
|
+
|
265
266
|
/**
|
266
267
|
* returns the next section in navigation
|
267
268
|
* @param top Boolean if true the next page will be the first page in the next array; if false the next section will be the same index page in the next array
|
@@ -292,7 +293,7 @@ var Flowtime = (function ()
|
|
292
293
|
}
|
293
294
|
return hiliteOrNavigate(sectionsArray[p][sp], io);
|
294
295
|
}
|
295
|
-
|
296
|
+
|
296
297
|
/**
|
297
298
|
* returns the prev section in navigation
|
298
299
|
* @param top Boolean if true the next section will be the first page in the prev array; if false the prev section will be the same index page in the prev array
|
@@ -324,7 +325,7 @@ var Flowtime = (function ()
|
|
324
325
|
}
|
325
326
|
return hiliteOrNavigate(sectionsArray[p][sp], io);
|
326
327
|
}
|
327
|
-
|
328
|
+
|
328
329
|
/**
|
329
330
|
* checks if there is a valid page in the current section array
|
330
331
|
* if the passed page is not valid thne check which is the first valid page in the array
|
@@ -355,7 +356,7 @@ var Flowtime = (function ()
|
|
355
356
|
}
|
356
357
|
return hiliteOrNavigate(nsp, io);
|
357
358
|
}
|
358
|
-
|
359
|
+
|
359
360
|
/**
|
360
361
|
* returns the next page in navigation
|
361
362
|
* if the next page is not in the current section array returns the first page in the next section array
|
@@ -382,7 +383,7 @@ var Flowtime = (function ()
|
|
382
383
|
}
|
383
384
|
return hiliteOrNavigate(sectionsArray[p][sp], io);
|
384
385
|
}
|
385
|
-
|
386
|
+
|
386
387
|
/**
|
387
388
|
* returns the prev page in navigation
|
388
389
|
* if the prev page is not in the current section array returns the last page in the prev section array
|
@@ -562,7 +563,7 @@ var Flowtime = (function ()
|
|
562
563
|
}
|
563
564
|
}
|
564
565
|
else if (isp == sp)
|
565
|
-
{
|
566
|
+
{
|
566
567
|
// same page
|
567
568
|
if (_fragmentsOnBack == true && (pastIndex.section > NavigationMatrix.getPageIndex().section || pastIndex.page > NavigationMatrix.getPageIndex().page))
|
568
569
|
{
|
@@ -582,11 +583,11 @@ var Flowtime = (function ()
|
|
582
583
|
{
|
583
584
|
fr[ip][isp] = -1
|
584
585
|
}
|
585
|
-
else
|
586
|
+
else
|
586
587
|
{
|
587
588
|
if (pastIndex.section > NavigationMatrix.getPageIndex().section || pastIndex.page > NavigationMatrix.getPageIndex().page)
|
588
589
|
{
|
589
|
-
fr[ip][isp] = frsp.length - 1;
|
590
|
+
fr[ip][isp] = frsp.length - 1;
|
590
591
|
}
|
591
592
|
else
|
592
593
|
{
|
@@ -599,7 +600,7 @@ var Flowtime = (function ()
|
|
599
600
|
}
|
600
601
|
}
|
601
602
|
}
|
602
|
-
|
603
|
+
|
603
604
|
/**
|
604
605
|
* returns the current section index
|
605
606
|
*/
|
@@ -611,7 +612,7 @@ var Flowtime = (function ()
|
|
611
612
|
}
|
612
613
|
return p;
|
613
614
|
}
|
614
|
-
|
615
|
+
|
615
616
|
/**
|
616
617
|
* returns the current page index
|
617
618
|
*/
|
@@ -776,7 +777,7 @@ var Flowtime = (function ()
|
|
776
777
|
}
|
777
778
|
return h;
|
778
779
|
}
|
779
|
-
|
780
|
+
|
780
781
|
/**
|
781
782
|
* expose the method to set the page from a hash
|
782
783
|
*/
|
@@ -843,7 +844,7 @@ var Flowtime = (function ()
|
|
843
844
|
}
|
844
845
|
else if (spa.index > d.index)
|
845
846
|
{
|
846
|
-
Brav1Toolbox.addClass(spa, "future-page");
|
847
|
+
Brav1Toolbox.addClass(spa, "future-page");
|
847
848
|
}
|
848
849
|
}
|
849
850
|
}
|
@@ -865,9 +866,9 @@ var Flowtime = (function ()
|
|
865
866
|
{
|
866
867
|
Brav1Toolbox.addClass(d, "actual");
|
867
868
|
}
|
868
|
-
|
869
|
+
|
869
870
|
_updateMatrix(); // update the navigation matrix on the first run
|
870
|
-
|
871
|
+
|
871
872
|
return {
|
872
873
|
update: _updateMatrix,
|
873
874
|
updateFragments: _updateFragments,
|
@@ -907,13 +908,13 @@ var Flowtime = (function ()
|
|
907
908
|
})();
|
908
909
|
|
909
910
|
/*
|
910
|
-
## ## ### ## ## #### ###### ### ######## #### ####### ## ## ######## ## ## ######## ## ## ######## ######
|
911
|
-
### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ### ## ## ## ##
|
912
|
-
#### ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## #### ## ## ##
|
913
|
-
## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ###### ## ## ###### ## ## ## ## ######
|
914
|
-
## #### ######### ## ## ## ## ## ######### ## ## ## ## ## #### ## ## ## ## ## #### ## ##
|
915
|
-
## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ### ## ## ##
|
916
|
-
## ## ## ## ### #### ###### ## ## ## #### ####### ## ## ######## ### ######## ## ## ## ######
|
911
|
+
## ## ### ## ## #### ###### ### ######## #### ####### ## ## ######## ## ## ######## ## ## ######## ######
|
912
|
+
### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ### ## ## ## ##
|
913
|
+
#### ## ## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## #### ## ## ##
|
914
|
+
## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ###### ## ## ###### ## ## ## ## ######
|
915
|
+
## #### ######### ## ## ## ## ## ######### ## ## ## ## ## #### ## ## ## ## ## #### ## ##
|
916
|
+
## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ### ## ## ##
|
917
|
+
## ## ## ## ### #### ###### ## ## ## #### ####### ## ## ######## ### ######## ## ## ## ######
|
917
918
|
*/
|
918
919
|
/**
|
919
920
|
* add a listener for event delegation
|
@@ -1019,13 +1020,13 @@ var Flowtime = (function ()
|
|
1019
1020
|
}
|
1020
1021
|
|
1021
1022
|
/*
|
1022
|
-
######## ####### ## ## ###### ## ##
|
1023
|
-
## ## ## ## ## ## ## ## ##
|
1024
|
-
## ## ## ## ## ## ## ##
|
1025
|
-
## ## ## ## ## ## #########
|
1026
|
-
## ## ## ## ## ## ## ##
|
1027
|
-
## ## ## ## ## ## ## ## ##
|
1028
|
-
## ####### ####### ###### ## ##
|
1023
|
+
######## ####### ## ## ###### ## ##
|
1024
|
+
## ## ## ## ## ## ## ## ##
|
1025
|
+
## ## ## ## ## ## ## ##
|
1026
|
+
## ## ## ## ## ## #########
|
1027
|
+
## ## ## ## ## ## ## ##
|
1028
|
+
## ## ## ## ## ## ## ## ##
|
1029
|
+
## ####### ####### ###### ## ##
|
1029
1030
|
*/
|
1030
1031
|
|
1031
1032
|
var _ftX = ftContainer.offsetX;
|
@@ -1139,13 +1140,13 @@ var Flowtime = (function ()
|
|
1139
1140
|
}
|
1140
1141
|
|
1141
1142
|
/*
|
1142
|
-
###### ###### ######## ####### ## ##
|
1143
|
-
## ## ## ## ## ## ## ## ## ##
|
1144
|
-
## ## ## ## ## ## ## ##
|
1145
|
-
###### ## ######## ## ## ## ##
|
1146
|
-
## ## ## ## ## ## ## ##
|
1147
|
-
## ## ## ## ## ## ## ## ## ##
|
1148
|
-
###### ###### ## ## ####### ######## ########
|
1143
|
+
###### ###### ######## ####### ## ##
|
1144
|
+
## ## ## ## ## ## ## ## ## ##
|
1145
|
+
## ## ## ## ## ## ## ##
|
1146
|
+
###### ## ######## ## ## ## ##
|
1147
|
+
## ## ## ## ## ## ## ##
|
1148
|
+
## ## ## ## ## ## ## ## ## ##
|
1149
|
+
###### ###### ## ## ####### ######## ########
|
1149
1150
|
*/
|
1150
1151
|
|
1151
1152
|
/**
|
@@ -1162,13 +1163,13 @@ var Flowtime = (function ()
|
|
1162
1163
|
}
|
1163
1164
|
|
1164
1165
|
/*
|
1165
|
-
######## ######## ###### #### ######## ########
|
1166
|
-
## ## ## ## ## ## ## ##
|
1167
|
-
## ## ## ## ## ## ##
|
1168
|
-
######## ###### ###### ## ## ######
|
1169
|
-
## ## ## ## ## ## ##
|
1170
|
-
## ## ## ## ## ## ## ##
|
1171
|
-
## ## ######## ###### #### ######## ########
|
1166
|
+
######## ######## ###### #### ######## ########
|
1167
|
+
## ## ## ## ## ## ## ##
|
1168
|
+
## ## ## ## ## ## ##
|
1169
|
+
######## ###### ###### ## ## ######
|
1170
|
+
## ## ## ## ## ## ##
|
1171
|
+
## ## ## ## ## ## ## ##
|
1172
|
+
## ## ######## ###### #### ######## ########
|
1172
1173
|
*/
|
1173
1174
|
|
1174
1175
|
/**
|
@@ -1185,21 +1186,21 @@ var Flowtime = (function ()
|
|
1185
1186
|
ticker = setTimeout(doResizeHandler, 300);
|
1186
1187
|
}
|
1187
1188
|
}
|
1188
|
-
|
1189
|
+
|
1189
1190
|
function _disable()
|
1190
1191
|
{
|
1191
1192
|
clearTimeout(ticker);
|
1192
1193
|
}
|
1193
|
-
|
1194
|
+
|
1194
1195
|
function doResizeHandler()
|
1195
1196
|
{
|
1196
1197
|
NavigationMatrix.updateOffsets();
|
1197
1198
|
navigateTo();
|
1198
1199
|
}
|
1199
|
-
|
1200
|
+
|
1200
1201
|
Brav1Toolbox.addListener(window, "resize", _enable);
|
1201
1202
|
window.addEventListener("orientationchange", _enable, false);
|
1202
|
-
|
1203
|
+
|
1203
1204
|
return {
|
1204
1205
|
enable: _enable,
|
1205
1206
|
disable: _disable,
|
@@ -1207,13 +1208,13 @@ var Flowtime = (function ()
|
|
1207
1208
|
})();
|
1208
1209
|
|
1209
1210
|
/*
|
1210
|
-
## ## ######## #### ## ######
|
1211
|
-
## ## ## ## ## ## ##
|
1212
|
-
## ## ## ## ## ##
|
1213
|
-
## ## ## ## ## ######
|
1214
|
-
## ## ## ## ## ##
|
1215
|
-
## ## ## ## ## ## ##
|
1216
|
-
####### ## #### ######## ######
|
1211
|
+
## ## ######## #### ## ######
|
1212
|
+
## ## ## ## ## ## ##
|
1213
|
+
## ## ## ## ## ##
|
1214
|
+
## ## ## ## ## ######
|
1215
|
+
## ## ## ## ## ##
|
1216
|
+
## ## ## ## ## ## ##
|
1217
|
+
####### ## #### ######## ######
|
1217
1218
|
*/
|
1218
1219
|
|
1219
1220
|
/**
|
@@ -1242,7 +1243,7 @@ var Flowtime = (function ()
|
|
1242
1243
|
}
|
1243
1244
|
return;
|
1244
1245
|
}
|
1245
|
-
|
1246
|
+
|
1246
1247
|
/**
|
1247
1248
|
* public method to force navigation updates
|
1248
1249
|
*/
|
@@ -1323,13 +1324,13 @@ var Flowtime = (function ()
|
|
1323
1324
|
}
|
1324
1325
|
|
1325
1326
|
/*
|
1326
|
-
## ## ### ## ## #### ###### ### ######## ######## ######## #######
|
1327
|
-
### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1328
|
-
#### ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1329
|
-
## ## ## ## ## ## ## ## ## #### ## ## ## ###### ## ## ##
|
1330
|
-
## #### ######### ## ## ## ## ## ######### ## ## ## ## ##
|
1331
|
-
## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1332
|
-
## ## ## ## ### #### ###### ## ## ## ######## ## #######
|
1327
|
+
## ## ### ## ## #### ###### ### ######## ######## ######## #######
|
1328
|
+
### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1329
|
+
#### ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1330
|
+
## ## ## ## ## ## ## ## ## #### ## ## ## ###### ## ## ##
|
1331
|
+
## #### ######### ## ## ## ## ## ######### ## ## ## ## ##
|
1332
|
+
## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1333
|
+
## ## ## ## ### #### ###### ## ## ## ######## ## #######
|
1333
1334
|
*/
|
1334
1335
|
|
1335
1336
|
/**
|
@@ -1407,17 +1408,17 @@ var Flowtime = (function ()
|
|
1407
1408
|
Brav1Toolbox.dispatchEvent(NAVIGATION_EVENT, {
|
1408
1409
|
section: NavigationMatrix.getCurrentSection(),
|
1409
1410
|
page: NavigationMatrix.getCurrentPage(),
|
1410
|
-
sectionIndex: pageIndex.section,
|
1411
|
+
sectionIndex: pageIndex.section,
|
1411
1412
|
pageIndex: pageIndex.page,
|
1412
|
-
pastSectionIndex: pastIndex.section,
|
1413
|
-
pastPageIndex: pastIndex.page,
|
1413
|
+
pastSectionIndex: pastIndex.section,
|
1414
|
+
pastPageIndex: pastIndex.page,
|
1414
1415
|
prevSection: NavigationMatrix.hasPrevSection(),
|
1415
1416
|
nextSection: NavigationMatrix.hasNextSection(),
|
1416
1417
|
prevPage: NavigationMatrix.hasPrevPage(),
|
1417
1418
|
nextPage: NavigationMatrix.hasNextPage(),
|
1418
1419
|
fragment: NavigationMatrix.getCurrentFragment(),
|
1419
1420
|
fragmentIndex: NavigationMatrix.getCurrentFragmentIndex(),
|
1420
|
-
isOverview: isOverview,
|
1421
|
+
isOverview: isOverview,
|
1421
1422
|
progress: NavigationMatrix.getProgress(),
|
1422
1423
|
total: NavigationMatrix.getPagesTotalLength()
|
1423
1424
|
} );
|
@@ -1449,7 +1450,7 @@ var Flowtime = (function ()
|
|
1449
1450
|
{
|
1450
1451
|
if (_slideInPx)
|
1451
1452
|
{
|
1452
|
-
ftContainer.style[Brav1Toolbox.getPrefixed("transform")] = "translateX(" + -x + "px) translateY(" + -y + "px)";
|
1453
|
+
ftContainer.style[Brav1Toolbox.getPrefixed("transform")] = "translateX(" + -x + "px) translateY(" + -y + "px)";
|
1453
1454
|
}
|
1454
1455
|
else
|
1455
1456
|
{
|
@@ -1501,7 +1502,7 @@ var Flowtime = (function ()
|
|
1501
1502
|
}
|
1502
1503
|
else if (pageIndex.section > i)
|
1503
1504
|
{
|
1504
|
-
pX = -pxElement.pX;
|
1505
|
+
pX = -pxElement.pX;
|
1505
1506
|
}
|
1506
1507
|
// pages
|
1507
1508
|
if (pageIndex.page < ii)
|
@@ -1510,7 +1511,7 @@ var Flowtime = (function ()
|
|
1510
1511
|
}
|
1511
1512
|
else if (pageIndex.page > ii)
|
1512
1513
|
{
|
1513
|
-
pY = -pxElement.pY;
|
1514
|
+
pY = -pxElement.pY;
|
1514
1515
|
}
|
1515
1516
|
// animation
|
1516
1517
|
if (_parallaxInPx)
|
@@ -1535,13 +1536,13 @@ var Flowtime = (function ()
|
|
1535
1536
|
}
|
1536
1537
|
|
1537
1538
|
/*
|
1538
|
-
######## ######## ####### ###### ######## ######## ###### ######
|
1539
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1540
|
-
## ## ## ## ## ## ## ## ## ## ## ##
|
1541
|
-
######## ######## ## ## ## #### ######## ###### ###### ######
|
1542
|
-
## ## ## ## ## ## ## ## ## ## ## ##
|
1543
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1544
|
-
## ## ## ####### ###### ## ## ######## ###### ######
|
1539
|
+
######## ######## ####### ###### ######## ######## ###### ######
|
1540
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1541
|
+
## ## ## ## ## ## ## ## ## ## ## ##
|
1542
|
+
######## ######## ## ## ## #### ######## ###### ###### ######
|
1543
|
+
## ## ## ## ## ## ## ## ## ## ## ##
|
1544
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1545
|
+
## ## ## ####### ###### ## ## ######## ###### ######
|
1545
1546
|
*/
|
1546
1547
|
var defaultProgress = null;
|
1547
1548
|
var progressFill = null;
|
@@ -1613,15 +1614,15 @@ var Flowtime = (function ()
|
|
1613
1614
|
}
|
1614
1615
|
|
1615
1616
|
/*
|
1616
|
-
####### ## ## ######## ######## ## ## #### ######## ## ## ## ## ### ## ## ### ###### ######## ## ## ######## ## ## ########
|
1617
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ### ## ## ### ## ## ## ## ## ## ### ### ## ### ## ##
|
1618
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## #### #### ## ## #### ## ## ## ## ## #### #### ## #### ## ##
|
1619
|
-
## ## ## ## ###### ######## ## ## ## ###### ## ## ## ## ### ## ## ## ## ## ## ## ## ## #### ###### ## ### ## ###### ## ## ## ##
|
1620
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ######### ## #### ######### ## ## ## ## ## ## ## #### ##
|
1621
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ### ##
|
1622
|
-
####### ### ######## ## ## ### #### ######## ### ### ## ## ## ## ## ## ## ## ###### ######## ## ## ######## ## ## ##
|
1617
|
+
####### ## ## ######## ######## ## ## #### ######## ## ## ## ## ### ## ## ### ###### ######## ## ## ######## ## ## ########
|
1618
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ### ## ## ### ## ## ## ## ## ## ### ### ## ### ## ##
|
1619
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## #### #### ## ## #### ## ## ## ## ## #### #### ## #### ## ##
|
1620
|
+
## ## ## ## ###### ######## ## ## ## ###### ## ## ## ## ### ## ## ## ## ## ## ## ## ## #### ###### ## ### ## ###### ## ## ## ##
|
1621
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ######### ## #### ######### ## ## ## ## ## ## ## #### ##
|
1622
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ### ##
|
1623
|
+
####### ### ######## ## ## ### #### ######## ### ### ## ## ## ## ## ## ## ## ###### ######## ## ## ######## ## ## ##
|
1623
1624
|
*/
|
1624
|
-
|
1625
|
+
|
1625
1626
|
/**
|
1626
1627
|
* switch from the overview states
|
1627
1628
|
*/
|
@@ -1681,7 +1682,7 @@ var Flowtime = (function ()
|
|
1681
1682
|
}
|
1682
1683
|
|
1683
1684
|
function overviewZoomTypeA(out)
|
1684
|
-
{
|
1685
|
+
{
|
1685
1686
|
// ftContainer scale version
|
1686
1687
|
if (out)
|
1687
1688
|
{
|
@@ -1708,13 +1709,13 @@ var Flowtime = (function ()
|
|
1708
1709
|
}
|
1709
1710
|
|
1710
1711
|
/*
|
1711
|
-
## ## ######## ## ## ######## ####### ### ######## ######## ## ## ### ## ## #### ###### ### ######## #### ####### ## ##
|
1712
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ##
|
1713
|
-
## ## ## #### ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## #### ##
|
1714
|
-
##### ###### ## ######## ## ## ## ## ######## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ##
|
1715
|
-
## ## ## ## ## ## ## ## ######### ## ## ## ## ## #### ######### ## ## ## ## ## ######### ## ## ## ## ## ####
|
1716
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###
|
1717
|
-
## ## ######## ## ######## ####### ## ## ## ## ######## ## ## ## ## ### #### ###### ## ## ## #### ####### ## ##
|
1712
|
+
## ## ######## ## ## ######## ####### ### ######## ######## ## ## ### ## ## #### ###### ### ######## #### ####### ## ##
|
1713
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ##
|
1714
|
+
## ## ## #### ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ## ## ## ## ## #### ##
|
1715
|
+
##### ###### ## ######## ## ## ## ## ######## ## ## ## ## ## ## ## ## ## ## ## #### ## ## ## ## ## ## ## ## ##
|
1716
|
+
## ## ## ## ## ## ## ## ######### ## ## ## ## ## #### ######### ## ## ## ## ## ######### ## ## ## ## ## ####
|
1717
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## ## ### ## ## ## ## ## ## ## ## ## ## ## ## ## ## ###
|
1718
|
+
## ## ######## ## ######## ####### ## ## ## ## ######## ## ## ## ## ### #### ###### ## ## ## #### ####### ## ##
|
1718
1719
|
*/
|
1719
1720
|
|
1720
1721
|
/**
|
@@ -1722,7 +1723,7 @@ var Flowtime = (function ()
|
|
1722
1723
|
*/
|
1723
1724
|
Brav1Toolbox.addListener(window, "keydown", onKeyDown);
|
1724
1725
|
Brav1Toolbox.addListener(window, "keyup", onKeyUp);
|
1725
|
-
|
1726
|
+
|
1726
1727
|
function onKeyDown(e)
|
1727
1728
|
{
|
1728
1729
|
var tag = e.target.tagName;
|
@@ -1734,7 +1735,7 @@ var Flowtime = (function ()
|
|
1734
1735
|
}
|
1735
1736
|
}
|
1736
1737
|
}
|
1737
|
-
|
1738
|
+
|
1738
1739
|
function onKeyUp(e)
|
1739
1740
|
{
|
1740
1741
|
var tag = e.target.tagName;
|
@@ -1786,16 +1787,16 @@ var Flowtime = (function ()
|
|
1786
1787
|
}
|
1787
1788
|
|
1788
1789
|
/*
|
1789
|
-
######## ## ## ######## ## #### ###### ### ######## ####
|
1790
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1791
|
-
## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1792
|
-
######## ## ## ######## ## ## ## ## ## ######## ##
|
1793
|
-
## ## ## ## ## ## ## ## ######### ## ##
|
1794
|
-
## ## ## ## ## ## ## ## ## ## ## ## ##
|
1795
|
-
## ####### ######## ######## #### ###### ## ## ## ####
|
1790
|
+
######## ## ## ######## ## #### ###### ### ######## ####
|
1791
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1792
|
+
## ## ## ## ## ## ## ## ## ## ## ## ## ##
|
1793
|
+
######## ## ## ######## ## ## ## ## ## ######## ##
|
1794
|
+
## ## ## ## ## ## ## ## ######### ## ##
|
1795
|
+
## ## ## ## ## ## ## ## ## ## ## ## ##
|
1796
|
+
## ####### ######## ######## #### ###### ## ## ## ####
|
1796
1797
|
*/
|
1797
1798
|
|
1798
|
-
|
1799
|
+
|
1799
1800
|
/**
|
1800
1801
|
* triggers the first animation when visiting the site
|
1801
1802
|
* if the hash is not empty
|
@@ -1826,7 +1827,7 @@ var Flowtime = (function ()
|
|
1826
1827
|
updateProgress();
|
1827
1828
|
}
|
1828
1829
|
}
|
1829
|
-
}
|
1830
|
+
}
|
1830
1831
|
|
1831
1832
|
/*
|
1832
1833
|
* Public API to go to the next section
|
@@ -1850,7 +1851,7 @@ var Flowtime = (function ()
|
|
1850
1851
|
|
1851
1852
|
/*
|
1852
1853
|
* Public API to go to the prev section
|
1853
|
-
*
|
1854
|
+
*
|
1854
1855
|
*/
|
1855
1856
|
function _prevSection(top)
|
1856
1857
|
{
|
@@ -1911,7 +1912,7 @@ var Flowtime = (function ()
|
|
1911
1912
|
* the method accepts vary parameters:
|
1912
1913
|
* if two numbers were passed it assumes that the first is the section index and the second is the page index;
|
1913
1914
|
* if an object is passed it assumes that the object has a section property and a page property to get the indexes to navigate;
|
1914
|
-
* if an HTMLElement is passed it assumes the element is a destination page
|
1915
|
+
* if an HTMLElement is passed it assumes the element is a destination page
|
1915
1916
|
*/
|
1916
1917
|
function _gotoPage()
|
1917
1918
|
{
|
@@ -1920,7 +1921,7 @@ var Flowtime = (function ()
|
|
1920
1921
|
{
|
1921
1922
|
if (args.length == 1)
|
1922
1923
|
{
|
1923
|
-
|
1924
|
+
|
1924
1925
|
if (Brav1Toolbox.typeOf(args[0]) === "Object")
|
1925
1926
|
{
|
1926
1927
|
var o = args[0];
|
@@ -1983,13 +1984,13 @@ var Flowtime = (function ()
|
|
1983
1984
|
}
|
1984
1985
|
|
1985
1986
|
/*
|
1986
|
-
###### ######## ######## ######## ######## ######## ######
|
1987
|
-
## ## ## ## ## ## ## ## ## ##
|
1988
|
-
## ## ## ## ## ## ## ##
|
1989
|
-
###### ###### ## ## ###### ######## ######
|
1990
|
-
## ## ## ## ## ## ## ##
|
1991
|
-
## ## ## ## ## ## ## ## ## ##
|
1992
|
-
###### ######## ## ## ######## ## ## ######
|
1987
|
+
###### ######## ######## ######## ######## ######## ######
|
1988
|
+
## ## ## ## ## ## ## ## ## ##
|
1989
|
+
## ## ## ## ## ## ## ##
|
1990
|
+
###### ###### ## ## ###### ######## ######
|
1991
|
+
## ## ## ## ## ## ## ##
|
1992
|
+
## ## ## ## ## ## ## ## ## ##
|
1993
|
+
###### ######## ## ## ######## ## ## ######
|
1993
1994
|
*/
|
1994
1995
|
|
1995
1996
|
function _setFragmentsOnSide(v)
|
@@ -2065,7 +2066,7 @@ var Flowtime = (function ()
|
|
2065
2066
|
{
|
2066
2067
|
_parallaxInPx = v;
|
2067
2068
|
}
|
2068
|
-
|
2069
|
+
|
2069
2070
|
/**
|
2070
2071
|
* return object for public methods
|
2071
2072
|
*/
|
@@ -2098,5 +2099,5 @@ var Flowtime = (function ()
|
|
2098
2099
|
parallaxInPx: _setParallaxInPx,
|
2099
2100
|
getDefaultProgress: _getDefaultProgress
|
2100
2101
|
};
|
2101
|
-
|
2102
|
-
})();
|
2102
|
+
|
2103
|
+
})();
|