tape viewer update

This commit is contained in:
tmshv committed 2015-08-15 21:22:48 +03:00
1 parent 5e9889e3f4
commit d9ca65958c
4 files changed
+23 -33

No files matched your search

+5 -16
View File
@@ -9,28 +9,17 @@
} }
} }
.main-block { .page.page-home{
width: 100%; width: 90%;
margin-top: 5px; margin: 0 auto;
.telephone {
font-size: 1.25em;
margin-left: 30px;
} }
.main-block {
h1 { h1 {
font-size: 18pt; font-size: 18pt;
text-align: center; text-align: center;
font-weight: normal; font-weight: normal;
margin: 1em 0 0; margin: 1.2em 0 0;
padding: 0; padding: 0;
} }
} }
@media screen and (max-device-width: 500px) {
.main-block {
.telephone {
display: none;
}
}
}
+3 -3
View File
@@ -1,5 +1,5 @@
.tape-block{ .tape-block{
width: 70%; width: 60%;
max-width: 1000px; max-width: 1000px;
margin: 2em auto; margin: 2em auto;
@@ -11,7 +11,7 @@
} }
} }
.tape-block-content{ .tape-block__body{
position: relative; position: relative;
width: 100%; width: 100%;
@@ -53,7 +53,7 @@
margin: 1.5em auto; margin: 1.5em auto;
} }
.tape-block-content { .tape-block__body {
.tape { .tape {
width: 62px; width: 62px;
height: 62px; height: 62px;
+13 -4
View File
@@ -3,27 +3,36 @@
*/ */
module.exports = function (app) { module.exports = function (app) {
app.controller("HomePageController", function ($scope, config) { app.controller('HomePageController', function ($scope, config) {
var fotorama; var fotorama;
$scope.pageClass = "page-home"; $scope.pageClass = 'page-home';
var $tape = $('.tape-block'); var $tape = $('.tape-block');
var $fotorama = $('.fotorama'); var $fotorama = $tape.find('.tape-block__content');
$tape.addClass('simplified'); $tape.addClass('simplified');
$fotorama.on('fotorama:ready', function () { $fotorama.on('fotorama:ready', function () {
$tape.removeClass('simplified'); $tape.removeClass('simplified');
fotorama.setOptions({ fotorama.setOptions({
nav: 'dots' nav: 'dots',
transition: 'crossfade',
autoplay: '6000',
arrows: 'false',
width: '100%',
fit: 'cover',
loop: 'true'
}); });
}); });
fotorama = $fotorama.fotorama().data('fotorama'); fotorama = $fotorama.fotorama().data('fotorama');
setTimeout(function(){
fotorama.load([ fotorama.load([
{img: 'http://static.shburg.org/art/img/cat1.jpg'}, {img: 'http://static.shburg.org/art/img/cat1.jpg'},
{img: 'http://static.shburg.org/art/img/cat2.jpg'}, {img: 'http://static.shburg.org/art/img/cat2.jpg'},
{img: 'http://static.shburg.org/art/img/cat3.jpg'} {img: 'http://static.shburg.org/art/img/cat3.jpg'}
]); ]);
}, 100);
}); });
}; };
+2 -10
View File
@@ -15,21 +15,13 @@
</div> </div>
<div class="tape-block"> <div class="tape-block">
<div class="tape-block-content"> <div class="tape-block__body">
<div class="tape tape-tl"></div> <div class="tape tape-tl"></div>
<div class="tape tape-tr"></div> <div class="tape tape-tr"></div>
<div class="tape tape-bl"></div> <div class="tape tape-bl"></div>
<div class="tape tape-br"></div> <div class="tape tape-br"></div>
<div class="fotorama" <div class="tape-block__content"></div>
data-transition="crossfade"
data-autoplay="6000"
data-nav="false"
data-arrows="false"
data-width="100%"
data-fit="cover"
data-loop="true">
</div>
</div> </div>
</div> </div>