This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.open-link').magnificPopup({ | |
type: 'image', | |
closeOnBgClick: true, | |
fixedContentPos: false, | |
callbacks: { | |
open: function() { | |
jQuery('body').addClass('noscroll'); | |
}, | |
close: function() { | |
jQuery('body').removeClass('noscroll'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="myCarousel" class="carousel slide" data-ride="carousel" data-interval="8000"> | |
<!--====/ Slider Pagination /=====--> | |
<ol class="carousel-indicators"> | |
<li data-target="#myCarousel" data-slide-to="0" class="active"></li> | |
<li data-target="#myCarousel" data-slide-to="1"></li> | |
<li data-target="#myCarousel" data-slide-to="2"></li> | |
</ol> | |
<div class="carousel-inner"> | |
<!--====/ Single Slider /=====--> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Calculating Process: | |
Fullwidth of PSD Document * Bootstrap Width(1170px) = Results / PSD Document Content Width = Final Result. | |
2800 * 1170 = 3276000 / 2500 = 1310 Resize Image | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a) This worked for me: | |
function clearHashtag(){ | |
if(location.href.indexOf('#prettyPhoto')!==-1) | |
location.hash=""; | |
} | |
This code is at the bottom of jquery.prettyPhoto.js | |
b) There is another way, like setting: deeplinking: false at the beginning of jquery.prettyPhoto.js. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//loop er bahire | |
$a = 0; | |
$active_class = ''; | |
loop er bitore | |
while (condition goes here): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="owl-carousel"> | |
<div> Slide 1 </div> | |
<div> Slide 2 </div> | |
<div> Slide 3 </div> | |
<div> Slide 4 </div> | |
<div> Slide 5 </div> | |
<div> Slide 6 </div> | |
<div> Slide 7 </div> | |
</div> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Modal Trigger | |
<a class="terms_scroll" href="#" data-toggle="modal" data-target="#privacyPolicy" data-section="section-1"> Subscription Services</a> | |
//Model window scroll to subscription renewal section script | |
$(document).ready(function(){ | |
$('#privacyPolicy').on('shown.bs.modal', function(event) { | |
// reset the scroll to top | |
$('#privacyPolicy .privacy_policy_content').scrollTop(0); | |
// get the section using data | |
var section = $(event.relatedTarget).data('section'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
https://stackoverflow.com/questions/15517718/find-php-version-on-windows-command-line |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<style>/* https://gist.github.com/toddparker/32fc9647ecc56ef2b38a */ | |
/* Some basic page styles */ | |
body { | |
font: 100%/1.5 AvenirNext-Regular, Corbel, "Lucida Grande", "Trebuchet Ms", sans-serif; | |
color: #111; | |
background-color: #fff; | |
margin: 2em 10% | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="container"> | |
<h1>Play YouTube or Vimeo Videos in Bootstrap 4 Modal</h1> | |
<!-- Button trigger modal --> | |
<button type="button" class="btn btn-primary video-btn" data-toggle="modal" data-src="https://www.youtube.com/embed/Jfrjeg26Cwk" data-target="#myModal"> | |
Play Video 1 - autoplay | |
</button> | |
<!-- Button trigger modal --> |