This commit is contained in:
Anna Sudnitsina 2018-03-27 21:20:26 +03:00
parent 5aa9b5bfe6
commit d5082cd64e
2 changed files with 23 additions and 12 deletions

View File

@ -9,9 +9,9 @@
<script src="https://code.jquery.com/jquery-2.1.1.min.js"></script> <script src="https://code.jquery.com/jquery-2.1.1.min.js"></script>
<script> <script>
resizer(); // resizer();
// $(function() {resizer(); }) // $(function() {resizer(); })
$(window).load(function() {resizer();}) $(window).load(function() {resizer(); $('#page-preloader').delay(350).fadeOut('slow');})
// $(window).on("load", function() {resizer(); }); // $(window).on("load", function() {resizer(); });
$(window).resize(function() { resizer(); }) $(window).resize(function() { resizer(); })

View File

@ -83,6 +83,16 @@
padding: 9px; padding: 9px;
} }
#page-preloader {
position: fixed;
left: 0;
top: 0;
right: 0;
bottom: 0;
background: #000;
z-index: 100500;
}
@media screen and (max-width: 450px) { @media screen and (max-width: 450px) {
ul.menu-icon {display: block} ul.menu-icon {display: block}
@ -91,6 +101,7 @@
</style> </style>
</head> </head>
<body> <body>
<div id="page-preloader"><span class="spinner"></span></div>
<div class='header'> <a href="{% url 'all_posts' %}" class='logo'>LOGO </a> <div class='header'> <a href="{% url 'all_posts' %}" class='logo'>LOGO </a>
<a href="{% url 'image_new' %}" class='right-menu'>new image</a> <a href="{% url 'image_new' %}" class='right-menu'>new image</a>
<a href="{% url 'all_posts' %}" class='right-menu'>all images</a> <a href="{% url 'all_posts' %}" class='right-menu'>all images</a>