Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html lang="bg">
- <head>
- <meta charset="utf-8" />
- <title>CSS Example</title>
- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.1.0/css/font-awesome.min.css" rel="stylesheet">
- <style>
- header{position: relative}
- header nav{position: absolute; top:35px; left:360px}
- header nav ul{list-style: none;}
- header nav ul li{display:inline-block}
- header nav ul li a{font-size: 20px;text-decoration: none; color:#906090; padding-left: 10px; padding-right: 10px;}
- h1,h2,h3{text-align: center}
- .wraper{width:1060px; margin:0 auto}
- section:nth-of-type(1){background-color: #d6d6d6; padding-bottom: 30px; padding-top:30px}
- .fe1{width:48%;position:relative; overflow: hidden; height: 500px;background-color: #000;}
- .fe1 img{position:absolute; width: 900px;opacity: 0.7;transition: all 0.8s linear 0.2s; -moz-transition: all 0.8s linear 0.2s; -webkit-transition: all 0.8s linear 0.2s}
- .fe1:hover img{width:1000px; transition: all 0.8s linear 0.2s; -moz-transition: all 0.8s linear 0.2s; -webkit-transition: all 0.8s linear 0.2s}
- .fe1 button{width: 150px; height: 80px; text-align: center; background-color: rgba(0,0,0,0.1);font-size: 26px;font-style: italic; color:cyan;position: absolute; bottom: -100px;left:0;right:0;margin:0 auto;transition: all 0.8s linear 0.9s}
- .fe1 p:hover + button{bottom:100px; transition: all 0.8s linear 0.2s}
- .fe1 p{position: absolute; top: -100px;width:100%; text-align: center; font-size: 26px; color:cyan; transition: all 0.8s linear 0.2s; -moz-transition: all 0.8s linear 0.2s; -webkit-transition: all 0.8s linear 0.2s}
- .fe1:hover p{top:150px; transition: all 0.8s linear 0.2s; -moz-transition: all 0.8s linear 0.2s; -webkit-transition: all 0.8s linear 0.2s}
- .fe2{width:48%;float: right; position:relative;overflow: hidden; height: 500px;background-color: #000;}
- .fe2 img{position:absolute; width: 1100px;opacity: 0.7; transition: all 0.8s linear 0.2s; -moz-transition: all 0.8s linear 0.2s; -webkit-transition: all 0.8s linear 0.2s}
- .fe2:hover img{width:1200px; transition: all 0.8s linear 0.2s; -moz-transition: all 0.8s linear 0.2s; -webkit-transition: all 0.8s linear 0.2s}
- .fe2 button{width: 150px; height: 80px; text-align: center; background-color: rgba(0,0,0,0.1);font-size: 26px;font-style: italic; color:cyan;position: absolute; bottom: -100px;left:0;right:0;margin:0 auto;transition: all 0.8s linear 0.9s}
- .fe2:hover button{bottom:100px; transition: all 0.8s linear 0.2s}
- .fe2 p{position: absolute; top: -100px;width:100%; text-align: center; font-size: 26px; color:cyan; transition: all 0.8s linear 0.2s}
- .fe2:hover p{top:150px; transition: all 0.8s linear 0.2s; -moz-transition: all 0.8s linear 0.2s; -webkit-transition: all 0.8s linear 0.2s}
- section:nth-of-type(3){text-align: center}
- section:nth-of-type(3) p{margin-top: 60px}
- .black{background-color: #000;}
- .center{text-align: center}
- footer div{color:#fff;padding-top: 50px; padding-bottom: 50px}
- footer{margin-top: 50px}
- section:nth-of-type(3) i{font-size:30px; margin-right:10px;}
- @media screen and (max-width:900px){
- .logo img{width:200px}
- header nav{top:10px; left:200px}
- .fe1, .fe2{margin: 0 auto;width: 70%;}
- .wraper{width:100%}
- .fe2{float:none;}
- .fe1{margin-top: 30px}
- }
- </style>
- <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script>
- </head>
- <body>
- <header class="wraper">
- <div class="logo">
- <img src="http://webacademy.bg/wp-content/themes/Artificial-Reason-WP/img/about_logo.png" alt="logo" />
- </div>
- <nav>
- <ul>
- <li><a href="#">Home</a></li>
- <li><a href="#anchor1">About</a></li>
- <li><a href="#anchor2">Courses</a></li>
- <li><a href="#anchor3">Contacts</a></li>
- </ul>
- </nav>
- </header>
- <section>
- <div class="wraper">
- <a name="anchor1"></a>
- <h1>About us</h1>
- <p><strong>袩褉芯械泻褌褗褌 鈥溞P敌� 袗泻邪写械屑懈褟鈥� 褋褌邪褉褌懈褉邪 褋 芯褌泻褉懈胁邪薪械褌芯 薪邪 鈥溞P敌� 袗泻邪写械屑懈褟 袩谢芯胁写懈胁鈥� 锌褉械蟹 芯泻褌芯屑胁褉懈 2015 谐., 泻邪褌芯 写芯 屑芯屑械薪褌邪 薪邪写 300 褋褌褍写械薪褌懈 褍褋锌械褕薪芯 褋邪 锌褉械屑懈薪邪谢懈 芯斜褍褔懈褌械谢薪懈 泻褍褉褋芯胁械 胁 芯薪谢邪泄薪 懈 锌褉懈褋褗褋褌胁械薪邪 褎芯褉屑邪 薪邪 芯斜褍褔械薪懈械.</strong></p>
- <p>袧邪 11 袦邪泄 2016 谐芯写懈薪邪 褋褌邪褉褌懈褉邪 鈥溞P敌� 袗泻邪写械屑懈褟 小褌邪褉邪 袟邪谐芯褉邪鈥�, 锌芯写 懈薪懈褑懈邪褌懈胁邪褌邪 鈥溞熝€芯谐褉邪屑懈褉邪泄 小褌邪褉邪 袟邪谐芯褉邪鈥�, 芯褋褗褖械褋褌胁械薪邪 褋 谢褞斜械蟹薪邪褌邪 锌芯写泻褉械锌邪 薪邪 袨斜褖懈薪邪 小褌邪褉邪 袟邪谐芯褉邪. 笑械谢褌邪 薪邪 懈薪褑懈邪褌懈胁邪褌邪 械 写邪 褋械 褋褗蟹写邪写械 袠孝 芯斜褖械褋褌胁芯 胁 谐褉邪写邪 懈 褌芯泄 写邪 褋械 锌褉械胁褗褉薪械 胁 邪褌褉邪泻褌懈胁薪邪 写械褋褌懈薪邪褑懈褟 蟹邪 斜褗谢谐邪褉褋泻懈 懈 屑械卸写褍薪邪褉芯写薪懈 袠孝 泻芯屑锌邪薪懈懈 懈 懈薪胁械褋褌懈褌芯褉懈.</p>
- </div>
- </section>
- <section class="wraper">
- <a name="anchor2"></a>
- <h2>Courses</h2>
- <div class="fe2">
- <img src="https://www.santandercb.co.uk/sites/default/files/corporate-hp.jpg" alt="pic1" />
- <p>Front-end Level 2</p>
- <button>Read more</button>
- </div>
- <div class="fe1">
- <img src="http://leighevents.com/wp-content/uploads/2015/03/meeting-boardroom-professionals.jpg" alt="pic2" />
- <p>Front-end Level 1</p>
- <button>Read more</button>
- </div>
- </section>
- <section>
- <a name="anchor3"></a>
- <h3>Contacts</h3>
- <div id="googleMaps" style="width:100%;height:500px;"></div>
- <input type="hidden" name="map_cords" id="map_cords">
- <p class='wraper'><i class="fa fa-map-marker" aria-hidden="true"></i>
- 斜褍谢. 笑邪褉 小懈屑械芯薪 袙械谢懈泻懈 168 袗, 械褌.3, 芯褎懈褋 36<br />
- 6000 小褌邪褉邪 袟邪谐芯褉邪, 袘褗谢谐邪褉懈褟
- </p>
- </section>
- <footer class='black'>
- <div class='wraper center'>Copyright 漏 2017 WebAcademy. 袙褋懈褔泻懈 锌褉邪胁邪 蟹邪锌邪蟹械薪懈.</div>
- </footer>
- <script src="http://maps.googleapis.com/maps/api/js?key=AIzaSyDlOzVRLTFmbffkoU73xQfId8o-mdU5EEg&libraries=places&callback=initAutocomplete" async defer></script>
- <script>
- var i;
- var cords;
- var marker;
- var markers = [];
- function initAutocomplete() {
- var webStz = {lat: 42.4261278, lng: 25.640974};
- var map = new google.maps.Map(document.getElementById('googleMaps'), {
- center: webStz,
- zoom: 18,
- mapTypeId: 'roadmap'
- });
- //add marker for webacademy stz
- marker = new google.maps.Marker({
- position: webStz,
- map: map
- });
- //create marker ot map when click
- map.addListener('click', function(event) {
- marker = new google.maps.Marker({
- position: event.latLng,
- map: map
- });
- //del marker
- marker.addListener('click', function(event) {
- i = markers.indexOf(this);
- if(i != -1) {
- markers.splice(i, 1);
- }
- cords ='';
- this.setMap(null);
- markers.forEach(function(entry) {
- cords += entry.position;
- });
- $('#map_cords').val(cords)
- });
- markers.push(marker);
- cords ='';
- markers.forEach(function(entry) {
- cords += entry.position;
- });
- $('#map_cords').val(cords);
- });
- //load markers from map_cords and put on map
- //save coords on map_cords
- cords ='';
- markers.forEach(function(entry) {
- cords += entry.position;
- });
- $('#map_cords').val(cords);
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment