Merge branch 'feature/multiplebg' into develop
This commit is contained in:
@@ -31,7 +31,6 @@
|
|||||||
<style>
|
<style>
|
||||||
.splash {
|
.splash {
|
||||||
background-color: transparent;
|
background-color: transparent;
|
||||||
background-image: url("/static/img/landing1.jpg");
|
|
||||||
-webkit-background-size: cover;
|
-webkit-background-size: cover;
|
||||||
-moz-background-size: cover;
|
-moz-background-size: cover;
|
||||||
-o-background-size: cover;
|
-o-background-size: cover;
|
||||||
@@ -45,7 +44,7 @@
|
|||||||
.container_top {background-color: rgba(255,255,255,0.7);}
|
.container_top {background-color: rgba(255,255,255,0.7);}
|
||||||
</style>
|
</style>
|
||||||
|
|
||||||
<div class="splash">
|
<div id="bgpic" class="splash">
|
||||||
{% analytical_body_top %}
|
{% analytical_body_top %}
|
||||||
<div class="container_top">
|
<div class="container_top">
|
||||||
<div class="container_12">
|
<div class="container_12">
|
||||||
@@ -257,5 +256,16 @@
|
|||||||
</div>
|
</div>
|
||||||
<!-- end container -->
|
<!-- end container -->
|
||||||
{% analytical_body_bottom %}
|
{% analytical_body_bottom %}
|
||||||
|
<script type="text/javascript">
|
||||||
|
var num = (Math.floor(Math.random()*4));
|
||||||
|
|
||||||
|
var array = ['one', 'two', 'three', 'four'];
|
||||||
|
|
||||||
|
|
||||||
|
var elem = document.getElementById('bgpic');
|
||||||
|
console.log(elem);
|
||||||
|
elem.classList.add(array[num]);
|
||||||
|
|
||||||
|
</script>
|
||||||
</body>
|
</body>
|
||||||
</html>
|
</html>
|
||||||
|
|||||||
@@ -1,4 +1,30 @@
|
|||||||
|
#main {
|
||||||
|
background-color: transparent;
|
||||||
|
-webkit-background-size: cover;
|
||||||
|
-moz-background-size: cover;
|
||||||
|
-o-background-size: cover;
|
||||||
|
background-size: cover;
|
||||||
|
min-height: 759px;
|
||||||
|
min-width: 1024px;
|
||||||
|
width: 100%;
|
||||||
|
height: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.one {
|
||||||
|
background-image: url("/static/img/landing1.jpg");
|
||||||
|
}
|
||||||
|
|
||||||
|
.two {
|
||||||
|
background-image: url("/static/img/landing1.jpg");
|
||||||
|
}
|
||||||
|
|
||||||
|
.three {
|
||||||
|
background-image: url("/static/img/landing1.jpg");
|
||||||
|
}
|
||||||
|
|
||||||
|
.four {
|
||||||
|
background-image: url("/static/img/landing1.jpg");
|
||||||
|
}
|
||||||
|
|
||||||
html {
|
html {
|
||||||
font-size: 62.5%;
|
font-size: 62.5%;
|
||||||
|
|||||||
Binary file not shown.
|
Before Width: | Height: | Size: 518 KiB After Width: | Height: | Size: 335 KiB |
8
static/js/background.js
Normal file
8
static/js/background.js
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
var num = (Math.floor(Math.random()*4));
|
||||||
|
|
||||||
|
|
||||||
|
var array = ['one', 'two', 'three', 'four'];
|
||||||
|
|
||||||
|
var elem = document.getElementById('main');
|
||||||
|
|
||||||
|
elem.classList.add(array[num]);
|
||||||
Reference in New Issue
Block a user