poc
This commit is contained in:
@@ -10,6 +10,17 @@
|
||||
content="Web site created using create-react-app"
|
||||
/>
|
||||
<link rel="apple-touch-icon" href="%PUBLIC_URL%/logo192.png" />
|
||||
<link rel="stylesheet" href="%PUBLIC_URL%/style.css" type="text/css" />
|
||||
<link rel="stylesheet" href="%PUBLIC_URL%/css/animate.css" type="text/css" />
|
||||
|
||||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/bxslider/4.2.12/jquery.bxslider.css">
|
||||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" integrity="sha384-WskhaSGFgHYWDcbwN70/dfYBj47jz9qbsMId/iRN3ewGhXQFZCSftd1LZCfmhktB" crossorigin="anonymous">
|
||||
|
||||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.1.0/css/all.css" integrity="sha384-lKuwvrZot6UHsBSfcMvOkWwlCMgc0TaWr+30HWe3a4ltaBwTZhyTEggF5tJv8tbt" crossorigin="anonymous">
|
||||
<!-- Font Google -->
|
||||
<link href="https://fonts.googleapis.com/css?family=Poppins:300,400,500,600,700" rel="stylesheet">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
|
||||
<!--
|
||||
manifest.json provides metadata used when your web app is installed on a
|
||||
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
|
||||
@@ -27,6 +38,14 @@
|
||||
<title>React App</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.12.4/jquery.min.js"></script>
|
||||
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js" integrity="sha384-smHYKdLADwkXOn1EmN1qk/HfnUcbVRZyYmZ4qpPea6sjB/pTJ0euyQp0Mk8ck+5T" crossorigin="anonymous"></script>
|
||||
<script src="https://cdn.jsdelivr.net/bxslider/4.2.12/jquery.bxslider.min.js"></script>
|
||||
<!-- scrollIt js -->
|
||||
<script src="%PUBLIC_URL%/js/scrollIt.min.js"></script>
|
||||
<script src="%PUBLIC_URL%/js/wow.min.js"></script>
|
||||
|
||||
<noscript>You need to enable JavaScript to run this app.</noscript>
|
||||
<div id="root"></div>
|
||||
<!--
|
||||
@@ -39,5 +58,71 @@
|
||||
To begin the development, run `npm start` or `yarn start`.
|
||||
To create a production bundle, use `npm run build` or `yarn build`.
|
||||
-->
|
||||
|
||||
<script>
|
||||
wow = new WOW();
|
||||
wow.init();
|
||||
$(document).ready(function(e) {
|
||||
|
||||
$('#video-icon').on('click',function(e){
|
||||
e.preventDefault();
|
||||
$('.video-popup').css('display','flex');
|
||||
$('.iframe-src').slideDown();
|
||||
});
|
||||
$('.video-popup').on('click',function(e){
|
||||
var $target = e.target.nodeName;
|
||||
var video_src = $(this).find('iframe').attr('src');
|
||||
if($target != 'IFRAME'){
|
||||
$('.video-popup').fadeOut();
|
||||
$('.iframe-src').slideUp();
|
||||
$('.video-popup iframe').attr('src'," ");
|
||||
$('.video-popup iframe').attr('src',video_src);
|
||||
}
|
||||
});
|
||||
|
||||
$('.slider').bxSlider({
|
||||
pager: false
|
||||
});
|
||||
});
|
||||
|
||||
$(window).on("scroll",function () {
|
||||
|
||||
var bodyScroll = $(window).scrollTop(),
|
||||
navbar = $(".navbar");
|
||||
|
||||
if(bodyScroll > 50){
|
||||
$('.navbar-logo img').attr('src','../marketing/images/logo-black.png');
|
||||
navbar.addClass("nav-scroll");
|
||||
|
||||
}else{
|
||||
$('.navbar-logo img').attr('src','../marketing/images/logo.png');
|
||||
navbar.removeClass("nav-scroll");
|
||||
}
|
||||
|
||||
});
|
||||
$(window).on("load",function (){
|
||||
var bodyScroll = $(window).scrollTop(),
|
||||
navbar = $(".navbar");
|
||||
|
||||
if(bodyScroll > 50){
|
||||
$('.navbar-logo img').attr('src','images/logo-black.png');
|
||||
navbar.addClass("nav-scroll");
|
||||
}else{
|
||||
$('.navbar-logo img').attr('src','images/logo.png');
|
||||
navbar.removeClass("nav-scroll");
|
||||
}
|
||||
|
||||
$.scrollIt({
|
||||
|
||||
easing: 'swing', // the easing function for animation
|
||||
scrollTime: 900, // how long (in ms) the animation takes
|
||||
activeClass: 'active', // class given to the active nav element
|
||||
onPageChange: null, // function(pageIndex) that is called when page is changed
|
||||
topOffset: -63
|
||||
});
|
||||
});
|
||||
|
||||
</script>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
Reference in New Issue
Block a user