pullentity-client 0.1.3 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +2 -0
- data/README.md +1 -1
- data/lib/pullentity-client/cli.rb +1 -1
- data/lib/pullentity-client/generate/auth.rb +32 -18
- data/lib/pullentity-client/generate/exporter.rb +14 -2
- data/lib/pullentity-client/generate/theme.rb +3 -3
- data/lib/pullentity-client/templates/app/assets/javascripts/application.js.erb +2 -1
- data/lib/pullentity-client/templates/app/assets/javascripts/config.js.erb +6 -0
- data/lib/pullentity-client/templates/app/assets/stylesheets/customtheme.css.scss +14 -8
- data/lib/pullentity-client/templates/app/index.html.haml +5 -3
- data/lib/pullentity-client/templates/app/views/list.haml +6 -6
- data/lib/pullentity-client/templates/app/views/shared/body.haml +5 -5
- data/lib/pullentity-client/templates/app/views/shared/head.haml +1 -9
- data/lib/pullentity-client/templates/app/views/shared/js.haml +0 -3
- data/lib/pullentity-client/templates/app/views/themes/home.haml +0 -1
- data/lib/pullentity-client/templates/app/views/themes/list-2.haml +13 -0
- data/lib/pullentity-client/templates/app/views/themes/theme1.haml +7 -8
- data/lib/pullentity-client/version.rb +1 -1
- data/spec/pullentity-client/generate/exporter_spec.rb +3 -3
- data/vendor/.DS_Store +0 -0
- data/vendor/assets/javascripts/{pullentity → backbone}/.DS_Store +0 -0
- data/vendor/assets/javascripts/backbone/backbone.js +1571 -0
- data/vendor/assets/javascripts/backbone/underscore.js +1227 -0
- data/vendor/assets/javascripts/bootstrap.js +1964 -0
- data/vendor/assets/javascripts/bootstrap.min.js +6 -0
- data/vendor/assets/javascripts/galleria/LICENSE +21 -0
- data/vendor/assets/javascripts/galleria/galleria-1.2.9.js +6121 -0
- data/vendor/assets/javascripts/galleria/galleria-1.2.9.min.js +9 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-demo.html +62 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/flickr-loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.js +383 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
- data/vendor/assets/javascripts/galleria/plugins/flickr/loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.js +146 -0
- data/vendor/assets/javascripts/galleria/plugins/history/galleria.history.min.js +8 -0
- data/vendor/assets/javascripts/galleria/plugins/history/history-demo.html +100 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.js +320 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/plugins/picasa/picasa-demo.html +55 -0
- data/vendor/assets/javascripts/galleria/themes/classic/classic-demo.html +124 -0
- data/vendor/assets/javascripts/galleria/themes/classic/classic-loader.gif +0 -0
- data/vendor/assets/javascripts/galleria/themes/classic/classic-map.png +0 -0
- data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.css +220 -0
- data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.js +95 -0
- data/vendor/assets/javascripts/galleria/themes/classic/galleria.classic.min.js +8 -0
- data/vendor/assets/javascripts/handlebars.js +2278 -0
- data/vendor/assets/javascripts/jquery.infinite-scroll.min.js +1 -0
- data/vendor/assets/javascripts/jquery.isotope.min.js +11 -0
- data/vendor/assets/javascripts/jquery.loadimage.js +3 -0
- data/vendor/assets/javascripts/jquery.masonry.min.js +10 -0
- data/vendor/assets/javascripts/jquery.waitforimages.js +4 -0
- data/vendor/assets/javascripts/pullentity-backbone/.DS_Store +0 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/helpers/app_helper.js.coffee +12 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/models/project.js.coffee +11 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/models/section.js.coffee +13 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/models/site.js.coffee +7 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/routers/router.coffee +7 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/site.js.coffee +33 -0
- data/vendor/assets/javascripts/pullentity-backbone/app/views/main.js.coffee +123 -0
- data/vendor/assets/javascripts/pullentity-backbone/application.js.coffee +8 -0
- data/vendor/assets/javascripts/pullentity.js +3 -0
- data/vendor/assets/stylesheets/bootstrap.css +4677 -0
- data/vendor/assets/stylesheets/bootstrap.min.css +9 -0
- data/vendor/assets/stylesheets/galleria/LICENSE +21 -0
- data/vendor/assets/stylesheets/galleria/galleria-1.2.9.js +6121 -0
- data/vendor/assets/stylesheets/galleria/galleria-1.2.9.min.js +9 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-demo.html +62 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/flickr-loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.js +383 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/galleria.flickr.min.js +8 -0
- data/vendor/assets/stylesheets/galleria/plugins/flickr/loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.js +146 -0
- data/vendor/assets/stylesheets/galleria/plugins/history/galleria.history.min.js +8 -0
- data/vendor/assets/stylesheets/galleria/plugins/history/history-demo.html +100 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.js +320 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/galleria.picasa.min.js +8 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/plugins/picasa/picasa-demo.html +55 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/classic-demo.html +124 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/classic-loader.gif +0 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/classic-map-original.png +0 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.css +217 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.js +95 -0
- data/vendor/assets/stylesheets/galleria/themes/classic/galleria.classic.min.js +8 -0
- metadata +70 -8
- data/lib/pullentity-client/templates/defaults/test-data.js.erb +0 -193
- data/vendor/assets/javascripts/mustache.js +0 -535
- data/vendor/assets/javascripts/pullentity/development.js.coffee +0 -222
- data/vendor/assets/javascripts/pullentity.js.erb +0 -3
- data/vendor/assets/javascripts/underscore-min.js +0 -1
@@ -0,0 +1,124 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<title>Galleria Classic Theme</title>
|
6
|
+
<style>
|
7
|
+
|
8
|
+
/* Demo styles */
|
9
|
+
html,body{background:#222;margin:0;}
|
10
|
+
body{border-top:4px solid #000;}
|
11
|
+
.content{color:#777;font:12px/1.4 "helvetica neue",arial,sans-serif;width:620px;margin:20px auto;}
|
12
|
+
h1{font-size:12px;font-weight:normal;color:#ddd;margin:0;}
|
13
|
+
p{margin:0 0 20px}
|
14
|
+
a {color:#22BCB9;text-decoration:none;}
|
15
|
+
.cred{margin-top:20px;font-size:11px;}
|
16
|
+
|
17
|
+
/* This rule is read by Galleria to define the gallery height: */
|
18
|
+
#galleria{height:320px}
|
19
|
+
|
20
|
+
</style>
|
21
|
+
|
22
|
+
<!-- load jQuery -->
|
23
|
+
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1/jquery.js"></script>
|
24
|
+
|
25
|
+
<!-- load Galleria -->
|
26
|
+
<script src="../../galleria-1.2.9.min.js"></script>
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
30
|
+
<div class="content">
|
31
|
+
<h1>Galleria Classic Theme</h1>
|
32
|
+
<p>Demonstrating a basic gallery example.</p>
|
33
|
+
|
34
|
+
<!-- Adding gallery images. We use resized thumbnails here for better performance, but it’s not necessary -->
|
35
|
+
|
36
|
+
<div id="galleria">
|
37
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/800px-Biandintz_eta_zaldiak_-_modified2.jpg">
|
38
|
+
<img
|
39
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/100px-Biandintz_eta_zaldiak_-_modified2.jpg",
|
40
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/a/a2/Biandintz_eta_zaldiak_-_modified2.jpg/1280px-Biandintz_eta_zaldiak_-_modified2.jpg"
|
41
|
+
data-title="Biandintz eta zaldiak"
|
42
|
+
data-description="Horses on Bianditz mountain, in Navarre, Spain."
|
43
|
+
>
|
44
|
+
</a>
|
45
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/800px-Athabasca_Rail_at_Brule_Lake.jpg">
|
46
|
+
<img
|
47
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/100px-Athabasca_Rail_at_Brule_Lake.jpg",
|
48
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6c/Athabasca_Rail_at_Brule_Lake.jpg/1280px-Athabasca_Rail_at_Brule_Lake.jpg"
|
49
|
+
data-title="Athabasca Rail"
|
50
|
+
data-description="The Athabasca River railroad track at the mouth of Brulé Lake in Alberta, Canada."
|
51
|
+
>
|
52
|
+
</a>
|
53
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/1280px-Back-scattering_crepuscular_rays_panorama_1.jpg">
|
54
|
+
<img
|
55
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/100px-Back-scattering_crepuscular_rays_panorama_1.jpg",
|
56
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/1/1f/Back-scattering_crepuscular_rays_panorama_1.jpg/1400px-Back-scattering_crepuscular_rays_panorama_1.jpg"
|
57
|
+
data-title="Back-scattering crepuscular rays"
|
58
|
+
data-description="Picture of the day on Wikimedia Commons 26 September 2010."
|
59
|
+
>
|
60
|
+
</a>
|
61
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/800px-Interior_convento_3.jpg">
|
62
|
+
<img
|
63
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/120px-Interior_convento_3.jpg",
|
64
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/7/75/Interior_convento_3.jpg/1400px-Interior_convento_3.jpg"
|
65
|
+
data-title="Interior convento"
|
66
|
+
data-description="Interior view of Yuriria Convent, founded in 1550."
|
67
|
+
>
|
68
|
+
</a>
|
69
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/800px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg">
|
70
|
+
<img
|
71
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/100px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg",
|
72
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/6/6b/Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg/1280px-Oxbow_Bend_outlook_in_the_Grand_Teton_National_Park.jpg"
|
73
|
+
data-title="Oxbow Bend outlook"
|
74
|
+
data-description="View over the Snake River to the Mount Moran with the Skillet Glacier."
|
75
|
+
>
|
76
|
+
</a>
|
77
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/800px-Hazy_blue_hour_in_Grand_Canyon.JPG">
|
78
|
+
<img
|
79
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/100px-Hazy_blue_hour_in_Grand_Canyon.JPG",
|
80
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/c/c9/Hazy_blue_hour_in_Grand_Canyon.JPG/1280px-Hazy_blue_hour_in_Grand_Canyon.JPG"
|
81
|
+
data-title="Hazy blue hour"
|
82
|
+
data-description="Hazy blue hour in Grand Canyon. View from the South Rim."
|
83
|
+
>
|
84
|
+
</a>
|
85
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/800px-2909_vallon_moy_res.jpg">
|
86
|
+
<img
|
87
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/100px-2909_vallon_moy_res.jpg",
|
88
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/f/f4/2909_vallon_moy_res.jpg/1280px-2909_vallon_moy_res.jpg"
|
89
|
+
data-title="Haute Severaisse valley"
|
90
|
+
data-description="View of Haute Severaisse valley and surrounding summits from the slopes of Les Vernets."
|
91
|
+
>
|
92
|
+
</a>
|
93
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/800px-Bohinjsko_jezero_2.jpg">
|
94
|
+
<img
|
95
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/100px-Bohinjsko_jezero_2.jpg",
|
96
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/4/46/Bohinjsko_jezero_2.jpg/1280px-Bohinjsko_jezero_2.jpg"
|
97
|
+
data-title="Bohinj lake"
|
98
|
+
data-description="Bohinj lake (Triglav National Park, Slovenia) in the morning."
|
99
|
+
>
|
100
|
+
</a>
|
101
|
+
<a href="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/800px-Bowling_Balls_Beach_2_edit.jpg">
|
102
|
+
<img
|
103
|
+
src="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/100px-Bowling_Balls_Beach_2_edit.jpg",
|
104
|
+
data-big="http://upload.wikimedia.org/wikipedia/commons/thumb/3/32/Bowling_Balls_Beach_2_edit.jpg/1280px-Bowling_Balls_Beach_2_edit.jpg"
|
105
|
+
data-title="Bowling Balls"
|
106
|
+
data-description="Mendocino county, California, USA."
|
107
|
+
>
|
108
|
+
</a>
|
109
|
+
</div>
|
110
|
+
|
111
|
+
<p class="cred">Made by <a href="http://galleria.aino.se">Galleria</a>.</p>
|
112
|
+
</div>
|
113
|
+
|
114
|
+
<script>
|
115
|
+
|
116
|
+
// Load the classic theme
|
117
|
+
Galleria.loadTheme('galleria.classic.min.js');
|
118
|
+
|
119
|
+
// Initialize Galleria
|
120
|
+
Galleria.run('#galleria');
|
121
|
+
|
122
|
+
</script>
|
123
|
+
</body>
|
124
|
+
</html>
|
Binary file
|
@@ -0,0 +1,220 @@
|
|
1
|
+
/* Galleria Classic Theme 2012-08-07 | https://raw.github.com/aino/galleria/master/LICENSE | (c) Aino */
|
2
|
+
|
3
|
+
#galleria-loader{height:1px!important}
|
4
|
+
|
5
|
+
.galleria-container {
|
6
|
+
position: relative;
|
7
|
+
overflow: hidden;
|
8
|
+
background: none repeat scroll 0 0 #FCFCFC;
|
9
|
+
border: 1px solid #EEEEEE;
|
10
|
+
overflow: hidden;
|
11
|
+
position: relative;
|
12
|
+
}
|
13
|
+
.galleria-container img {
|
14
|
+
-moz-user-select: none;
|
15
|
+
-webkit-user-select: none;
|
16
|
+
-o-user-select: none;
|
17
|
+
}
|
18
|
+
.galleria-stage {
|
19
|
+
position: absolute;
|
20
|
+
top: 10px;
|
21
|
+
bottom: 60px;
|
22
|
+
left: 10px;
|
23
|
+
right: 10px;
|
24
|
+
overflow:hidden;
|
25
|
+
}
|
26
|
+
.galleria-thumbnails-container {
|
27
|
+
height: 50px;
|
28
|
+
bottom: 0;
|
29
|
+
position: absolute;
|
30
|
+
left: 10px;
|
31
|
+
right: 10px;
|
32
|
+
z-index: 2;
|
33
|
+
}
|
34
|
+
.galleria-carousel .galleria-thumbnails-list {
|
35
|
+
margin-left: 30px;
|
36
|
+
margin-right: 30px;
|
37
|
+
}
|
38
|
+
.galleria-thumbnails .galleria-image {
|
39
|
+
height: 40px;
|
40
|
+
width: 60px;
|
41
|
+
margin: 0 5px 0 0;
|
42
|
+
float: left;
|
43
|
+
cursor: pointer;
|
44
|
+
background: none repeat scroll 0 0 transparent;
|
45
|
+
border: 1px solid #888888;
|
46
|
+
}
|
47
|
+
.galleria-counter {
|
48
|
+
position: absolute;
|
49
|
+
bottom: 10px;
|
50
|
+
left: 10px;
|
51
|
+
text-align: right;
|
52
|
+
color: #fff;
|
53
|
+
font: normal 11px/1 arial,sans-serif;
|
54
|
+
z-index: 1;
|
55
|
+
}
|
56
|
+
.galleria-loader {
|
57
|
+
background: #000;
|
58
|
+
width: 20px;
|
59
|
+
height: 20px;
|
60
|
+
position: absolute;
|
61
|
+
top: 10px;
|
62
|
+
right: 10px;
|
63
|
+
z-index: 2;
|
64
|
+
display: none;
|
65
|
+
background: url(classic-loader.gif) no-repeat 2px 2px;
|
66
|
+
}
|
67
|
+
.galleria-info {
|
68
|
+
width: 50%;
|
69
|
+
top: 15px;
|
70
|
+
left: 15px;
|
71
|
+
z-index: 2;
|
72
|
+
position: absolute;
|
73
|
+
}
|
74
|
+
.galleria-info-text {
|
75
|
+
background-color: #000;
|
76
|
+
padding: 12px;
|
77
|
+
display: none;
|
78
|
+
/* IE7 */ zoom:1;
|
79
|
+
}
|
80
|
+
.galleria-info-title {
|
81
|
+
font: bold 12px/1.1 arial,sans-serif;
|
82
|
+
margin: 0;
|
83
|
+
color: #fff;
|
84
|
+
margin-bottom: 7px;
|
85
|
+
}
|
86
|
+
.galleria-info-description {
|
87
|
+
font: italic 12px/1.4 georgia,serif;
|
88
|
+
margin: 0;
|
89
|
+
color: #bbb;
|
90
|
+
}
|
91
|
+
.galleria-info-close {
|
92
|
+
width: 9px;
|
93
|
+
height: 9px;
|
94
|
+
position: absolute;
|
95
|
+
top: 5px;
|
96
|
+
right: 5px;
|
97
|
+
background-position: -753px -11px;
|
98
|
+
opacity: .5;
|
99
|
+
filter: alpha(opacity=50);
|
100
|
+
cursor: pointer;
|
101
|
+
display: none;
|
102
|
+
}
|
103
|
+
.notouch .galleria-info-close:hover{
|
104
|
+
opacity:1;
|
105
|
+
filter: alpha(opacity=100);
|
106
|
+
}
|
107
|
+
.touch .galleria-info-close:active{
|
108
|
+
opacity:1;
|
109
|
+
filter: alpha(opacity=100);
|
110
|
+
}
|
111
|
+
.galleria-info-link {
|
112
|
+
background-position: -669px -5px;
|
113
|
+
opacity: .7;
|
114
|
+
filter: alpha(opacity=70);
|
115
|
+
position: absolute;
|
116
|
+
width: 20px;
|
117
|
+
height: 20px;
|
118
|
+
cursor: pointer;
|
119
|
+
background-color: #000;
|
120
|
+
}
|
121
|
+
.notouch .galleria-info-link:hover {
|
122
|
+
opacity: 1;
|
123
|
+
filter: alpha(opacity=100);
|
124
|
+
}
|
125
|
+
.touch .galleria-info-link:active {
|
126
|
+
opacity: 1;
|
127
|
+
filter: alpha(opacity=100);
|
128
|
+
}
|
129
|
+
.galleria-image-nav {
|
130
|
+
position: absolute;
|
131
|
+
top: 50%;
|
132
|
+
margin-top: -62px;
|
133
|
+
width: 100%;
|
134
|
+
height: 62px;
|
135
|
+
left: 0;
|
136
|
+
}
|
137
|
+
.galleria-image-nav-left,
|
138
|
+
.galleria-image-nav-right {
|
139
|
+
opacity: .3;
|
140
|
+
filter: alpha(opacity=30);
|
141
|
+
cursor: pointer;
|
142
|
+
width: 62px;
|
143
|
+
height: 124px;
|
144
|
+
position: absolute;
|
145
|
+
left: 10px;
|
146
|
+
z-index: 2;
|
147
|
+
background-position: 0 46px;
|
148
|
+
}
|
149
|
+
.galleria-image-nav-right {
|
150
|
+
left: auto;
|
151
|
+
right: 10px;
|
152
|
+
background-position: -254px 46px;
|
153
|
+
z-index: 2;
|
154
|
+
}
|
155
|
+
.notouch .galleria-image-nav-left:hover,
|
156
|
+
.notouch .galleria-image-nav-right:hover {
|
157
|
+
opacity: 1;
|
158
|
+
filter: alpha(opacity=100);
|
159
|
+
}
|
160
|
+
.touch .galleria-image-nav-left:active,
|
161
|
+
.touch .galleria-image-nav-right:active {
|
162
|
+
opacity: 1;
|
163
|
+
filter: alpha(opacity=100);
|
164
|
+
}
|
165
|
+
.galleria-thumb-nav-left,
|
166
|
+
.galleria-thumb-nav-right {
|
167
|
+
cursor: pointer;
|
168
|
+
display: none;
|
169
|
+
background-position: -495px 5px;
|
170
|
+
position: absolute;
|
171
|
+
left: 0;
|
172
|
+
top: 0;
|
173
|
+
height: 40px;
|
174
|
+
width: 23px;
|
175
|
+
z-index: 3;
|
176
|
+
opacity: .8;
|
177
|
+
filter: alpha(opacity=80);
|
178
|
+
}
|
179
|
+
.galleria-thumb-nav-right {
|
180
|
+
background-position: -578px 5px;
|
181
|
+
border-right: none;
|
182
|
+
right: 0;
|
183
|
+
left: auto;
|
184
|
+
}
|
185
|
+
.galleria-thumbnails-container .disabled {
|
186
|
+
opacity: .2;
|
187
|
+
filter: alpha(opacity=20);
|
188
|
+
cursor: default;
|
189
|
+
}
|
190
|
+
.notouch .galleria-thumb-nav-left:hover,
|
191
|
+
.notouch .galleria-thumb-nav-right:hover {
|
192
|
+
opacity: 1;
|
193
|
+
filter: alpha(opacity=100);
|
194
|
+
background-color: #111;
|
195
|
+
}
|
196
|
+
.touch .galleria-thumb-nav-left:active,
|
197
|
+
.touch .galleria-thumb-nav-right:active {
|
198
|
+
opacity: 1;
|
199
|
+
filter: alpha(opacity=100);
|
200
|
+
background-color: #111;
|
201
|
+
}
|
202
|
+
.notouch .galleria-thumbnails-container .disabled:hover {
|
203
|
+
opacity: .2;
|
204
|
+
filter: alpha(opacity=20);
|
205
|
+
background-color: transparent;
|
206
|
+
}
|
207
|
+
|
208
|
+
.galleria-carousel .galleria-thumb-nav-left,
|
209
|
+
.galleria-carousel .galleria-thumb-nav-right {
|
210
|
+
display: block;
|
211
|
+
}
|
212
|
+
.galleria-thumb-nav-left,
|
213
|
+
.galleria-thumb-nav-right,
|
214
|
+
.galleria-info-link,
|
215
|
+
.galleria-info-close,
|
216
|
+
.galleria-image-nav-left,
|
217
|
+
.galleria-image-nav-right {
|
218
|
+
background-image: url(classic-map.png);
|
219
|
+
background-repeat: no-repeat;
|
220
|
+
}
|
@@ -0,0 +1,95 @@
|
|
1
|
+
/**
|
2
|
+
* Galleria Classic Theme 2012-08-08
|
3
|
+
* http://galleria.io
|
4
|
+
*
|
5
|
+
* Licensed under the MIT license
|
6
|
+
* https://raw.github.com/aino/galleria/master/LICENSE
|
7
|
+
*
|
8
|
+
*/
|
9
|
+
|
10
|
+
(function($) {
|
11
|
+
|
12
|
+
/*global jQuery, Galleria */
|
13
|
+
|
14
|
+
Galleria.addTheme({
|
15
|
+
name: 'classic',
|
16
|
+
author: 'Galleria',
|
17
|
+
css: 'galleria.classic.css',
|
18
|
+
defaults: {
|
19
|
+
transition: 'slide',
|
20
|
+
thumbCrop: 'height',
|
21
|
+
|
22
|
+
// set this to false if you want to show the caption all the time:
|
23
|
+
_toggleInfo: true
|
24
|
+
},
|
25
|
+
init: function(options) {
|
26
|
+
|
27
|
+
Galleria.requires(1.28, 'This version of Classic theme requires Galleria 1.2.8 or later');
|
28
|
+
|
29
|
+
// add some elements
|
30
|
+
this.addElement('info-link','info-close');
|
31
|
+
this.append({
|
32
|
+
'info' : ['info-link','info-close']
|
33
|
+
});
|
34
|
+
|
35
|
+
// cache some stuff
|
36
|
+
var info = this.$('info-link,info-close,info-text'),
|
37
|
+
touch = Galleria.TOUCH,
|
38
|
+
click = touch ? 'touchstart' : 'click';
|
39
|
+
|
40
|
+
// show loader & counter with opacity
|
41
|
+
this.$('loader,counter').show().css('opacity', 0.4);
|
42
|
+
|
43
|
+
// some stuff for non-touch browsers
|
44
|
+
if (! touch ) {
|
45
|
+
this.addIdleState( this.get('image-nav-left'), { left:-50 });
|
46
|
+
this.addIdleState( this.get('image-nav-right'), { right:-50 });
|
47
|
+
this.addIdleState( this.get('counter'), { opacity:0 });
|
48
|
+
}
|
49
|
+
|
50
|
+
// toggle info
|
51
|
+
if ( options._toggleInfo === true ) {
|
52
|
+
info.bind( click, function() {
|
53
|
+
info.toggle();
|
54
|
+
});
|
55
|
+
} else {
|
56
|
+
info.show();
|
57
|
+
this.$('info-link, info-close').hide();
|
58
|
+
}
|
59
|
+
|
60
|
+
// bind some stuff
|
61
|
+
this.bind('thumbnail', function(e) {
|
62
|
+
|
63
|
+
if (! touch ) {
|
64
|
+
// fade thumbnails
|
65
|
+
$(e.thumbTarget).css('opacity', 0.6).parent().hover(function() {
|
66
|
+
$(this).not('.active').children().stop().fadeTo(100, 1);
|
67
|
+
}, function() {
|
68
|
+
$(this).not('.active').children().stop().fadeTo(400, 0.6);
|
69
|
+
});
|
70
|
+
|
71
|
+
if ( e.index === this.getIndex() ) {
|
72
|
+
$(e.thumbTarget).css('opacity',1);
|
73
|
+
}
|
74
|
+
} else {
|
75
|
+
$(e.thumbTarget).css('opacity', this.getIndex() ? 1 : 0.6);
|
76
|
+
}
|
77
|
+
});
|
78
|
+
|
79
|
+
this.bind('loadstart', function(e) {
|
80
|
+
if (!e.cached) {
|
81
|
+
this.$('loader').show().fadeTo(200, 0.4);
|
82
|
+
}
|
83
|
+
|
84
|
+
this.$('info').toggle( this.hasInfo() );
|
85
|
+
|
86
|
+
$(e.thumbTarget).css('opacity',1).parent().siblings().children().css('opacity', 0.6);
|
87
|
+
});
|
88
|
+
|
89
|
+
this.bind('loadfinish', function(e) {
|
90
|
+
this.$('loader').fadeOut(200);
|
91
|
+
});
|
92
|
+
}
|
93
|
+
});
|
94
|
+
|
95
|
+
}(jQuery));
|
@@ -0,0 +1,8 @@
|
|
1
|
+
/**
|
2
|
+
* Galleria Classic Theme 2012-08-08
|
3
|
+
* http://galleria.io
|
4
|
+
*
|
5
|
+
* Licensed under the MIT license
|
6
|
+
* https://raw.github.com/aino/galleria/master/LICENSE
|
7
|
+
*
|
8
|
+
*/(function(a){Galleria.addTheme({name:"classic",author:"Galleria",css:"galleria.classic.css",defaults:{transition:"slide",thumbCrop:"height",_toggleInfo:!0},init:function(b){Galleria.requires(1.28,"This version of Classic theme requires Galleria 1.2.8 or later"),this.addElement("info-link","info-close"),this.append({info:["info-link","info-close"]});var c=this.$("info-link,info-close,info-text"),d=Galleria.TOUCH,e=d?"touchstart":"click";this.$("loader,counter").show().css("opacity",.4),d||(this.addIdleState(this.get("image-nav-left"),{left:-50}),this.addIdleState(this.get("image-nav-right"),{right:-50}),this.addIdleState(this.get("counter"),{opacity:0})),b._toggleInfo===!0?c.bind(e,function(){c.toggle()}):(c.show(),this.$("info-link, info-close").hide()),this.bind("thumbnail",function(b){d?a(b.thumbTarget).css("opacity",this.getIndex()?1:.6):(a(b.thumbTarget).css("opacity",.6).parent().hover(function(){a(this).not(".active").children().stop().fadeTo(100,1)},function(){a(this).not(".active").children().stop().fadeTo(400,.6)}),b.index===this.getIndex()&&a(b.thumbTarget).css("opacity",1))}),this.bind("loadstart",function(b){b.cached||this.$("loader").show().fadeTo(200,.4),this.$("info").toggle(this.hasInfo()),a(b.thumbTarget).css("opacity",1).parent().siblings().children().css("opacity",.6)}),this.bind("loadfinish",function(a){this.$("loader").fadeOut(200)})}})})(jQuery);
|