tape viewer update
This commit is contained in:
1 parent
5e9889e3f4
commit
d9ca65958c
4 files changed
+37
-47
No files matched your search
+6
-17
@@ -9,28 +9,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.page.page-home{
|
||||||
|
width: 90%;
|
||||||
|
margin: 0 auto;
|
||||||
|
}
|
||||||
|
|
||||||
.main-block {
|
.main-block {
|
||||||
width: 100%;
|
|
||||||
margin-top: 5px;
|
|
||||||
|
|
||||||
.telephone {
|
|
||||||
font-size: 1.25em;
|
|
||||||
margin-left: 30px;
|
|
||||||
}
|
|
||||||
|
|
||||||
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;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
@@ -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;
|
||||||
|
|||||||
+18
-9
@@ -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');
|
||||||
fotorama.load([
|
|
||||||
{img: 'http://static.shburg.org/art/img/cat1.jpg'},
|
setTimeout(function(){
|
||||||
{img: 'http://static.shburg.org/art/img/cat2.jpg'},
|
fotorama.load([
|
||||||
{img: 'http://static.shburg.org/art/img/cat3.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/cat3.jpg'}
|
||||||
|
]);
|
||||||
|
}, 100);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
+10
-18
@@ -1,35 +1,27 @@
|
|||||||
<div class="main-block">
|
<div class="main-block">
|
||||||
<!--<div>-->
|
<!--<div>-->
|
||||||
<!--<!–<a href="tel://{{telephone}}"></a>–>-->
|
<!--<!–<a href="tel://{{telephone}}"></a>–>-->
|
||||||
<!--<span class="telephone">{{contact.telephone}}</span>-->
|
<!--<span class="telephone">{{contact.telephone}}</span>-->
|
||||||
|
|
||||||
<!--<!–<ul class="submenu">–>-->
|
<!--<!–<ul class="submenu">–>-->
|
||||||
<!--<!–<li><a href="/team#director">директор</a><p>М. Г. Тимашева</p></li>–>-->
|
<!--<!–<li><a href="/team#director">директор</a><p>М. Г. Тимашева</p></li>–>-->
|
||||||
<!--<!–<li><a href="/enter">поступление</a></li>–>-->
|
<!--<!–<li><a href="/enter">поступление</a></li>–>-->
|
||||||
<!--<!–<li><a href="/contacts">контактная информация</a></li>–>-->
|
<!--<!–<li><a href="/contacts">контактная информация</a></li>–>-->
|
||||||
<!--<!–<li><a href="/awards">награды</a></li>–>-->
|
<!--<!–<li><a href="/awards">награды</a></li>–>-->
|
||||||
<!--<!–</ul>–>-->
|
<!--<!–</ul>–>-->
|
||||||
<!--</div>-->
|
<!--</div>-->
|
||||||
|
|
||||||
<h1>Шлиссельбургская детская художественная школа</h1>
|
<h1>Шлиссельбургская детская художественная школа</h1>
|
||||||
</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>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user