A Pen by Nikesh Suwal on CodePen.
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
$(window).scroll(function(){ | |
header_height = $('.inner_header-bg').height(); //header height | |
content_height = $('.joinus-home').offset().top; //content height | |
window_scroll = $(window).scrollTop(); //scrolling value | |
header_footer_height= 554+115 //total height of header and footer | |
pos = content_height - header_footer_height; | |
filter_col = $('.item_filter').parent().width(); | |
if ( pos > window_scroll) { | |
$('.item_filter').css({ | |
'position': 'fixed', |
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
$(document).ready(function () { | |
//Move Next section | |
var $sec = $("section"); | |
$(".arrow-down ").click(function(){ | |
var y = $sec.filter(function(i, el) { | |
return el.getBoundingClientRect().bottom > 100; | |
})[$(this).hasClass("arrow-down")?"next":""]("section").offset().top; | |
$("html, body").stop().animate({scrollTop: y}); | |
}); |
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 terminal adn then running command below : | |
youtube-dl youtube-url --extract-audio --audio-format mp3 | |
To convert a YouTube video to mp3, runing this command on terminal: | |
youtube-dl youtube-url --extract-audio --audio-format mp3 | |
Example: | |
youtube-dl http://www.youtube.com/watch?v=QGJuMBdaqIw --extract-audio --audio-format mp3 |
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="container"> | |
<div id="header"></div> | |
<div id="body"></div> | |
<div id="footer"></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
.styled-select | |
select#society_scope name="society[scope]" | |
option value="" What is the scope of this society ? | |
option value="area" area | |
option value="neighbourhood" neighbourhood | |
option value="state" state | |
option value="country" country | |
option value="world" world |
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
form | |
.form-group | |
.image-upload | |
label for="society_image" class="input-lg" | |
span | |
| Upload Society Picture | |
= f.file_field :image, placeholder: "Upload Society Picture",class: 'form-control input-lg inputfile' |
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
form | |
.form-group.image-upload | |
label for="society_image" | |
span | |
| Upload Society Picture | |
i.fa.fa-cloud-upload | |
.file_name | |
= f.file_field :image, placeholder: "Upload Society Picture",class: 'form-control input-lg inputfile' |
A Pen by Nikesh Suwal on CodePen.
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
@mixin box-shadow($top, $left, $blur, $color, $inset: false) { | |
@if $inset { | |
-webkit-box-shadow:inset $top $left $blur $color; | |
-moz-box-shadow:inset $top $left $blur $color; | |
box-shadow:inset $top $left $blur $color; | |
} @else { | |
-webkit-box-shadow: $top $left $blur $color; | |
-moz-box-shadow: $top $left $blur $color; | |
box-shadow: $top $left $blur $color; | |
} |
NewerOlder