Skip to content

Instantly share code, notes, and snippets.

function heightDetect() {
$(".main_head").css("height", $(window).height());
};
heightDetect();
$(window).resize(function() {
heightDetect();
});
@kekc808
kekc808 / mobile_menu.html
Last active February 15, 2016 00:28
Mobile Menu Toggle Button
<!-- HTML -->
<a href="#" class="toggle-mnu hidden-lg"><span></span></a>
<!-- SASS -->
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
@kekc808
kekc808 / mousewheel-icon.html
Created February 15, 2016 00:30
Mose Wheel Animation CSS
<style>
/* ---------------------------------------------- /*
* Mouse animate icon
/* ---------------------------------------------- */
.mouse-icon {
border: 2px solid #000;
border-radius: 16px;
height: 40px;
width: 24px;
display: block;
@kekc808
kekc808 / animate-css.js
Last active October 6, 2016 18:24
Animate CSS jQuery once animate
//Animate CSS + WayPoints javaScript Plugin
//Example: $(".element").animated("zoomInUp");
//Author URL: http://webdesign-master.ru
(function($) {
$.fn.animated = function(inEffect) {
$(this).css("opacity", "0").addClass("animated").waypoint(function(dir) {
if (dir === "down") {
$(this).addClass(inEffect).css("opacity", "1");
};
}, {
$("form").submit(function() { //Change
var th = $(this);
$.ajax({
type: "POST",
url: "mail.php", //Change
data: th.serialize()
}).done(function() {
alert("Thank you!");
setTimeout(function() {
// Done Functions
@kekc808
kekc808 / jQuery Accordeon
Created October 6, 2016 19:43
jQuery Accordeon
JS:
$(".accordeon dd").hide().prev().click(function() {
$(this).parents(".accordeon").find("dd").not(this).slideUp().prev().removeClass("active");
$(this).next().not(":visible").slideDown().prev().addClass("active");
});
CSS:
.accordeon .active { color: red }
HTML:
@kekc808
kekc808 / tabs.css
Created October 6, 2016 20:20
jQuery Tabs Short
.wrapper .active {
color: red;
}
@kekc808
kekc808 / ajax-form.js
Created October 29, 2016 18:40
ajax-form.js
$("form").submit(function() { //Change
var th = $(this);
$.ajax({
type: "POST",
url: "mail.php", //Change
data: th.serialize()
}).done(function() {
alert("Thank you!");
setTimeout(function() {
// Done Functions
@kekc808
kekc808 / menu.sass
Created November 1, 2016 18:19
sass responsive menu
.toggle-mnu
display: block
width: 28px
height: 28px
margin-top: 14px
span:after, span:before
content: ""
position: absolute
left: 0
@kekc808
kekc808 / menu.js
Created November 1, 2016 18:22
resposive menu slide toggle
$(".toggle-mnu").click(function() {
$(this).toggleClass("on");
$(".main-mnu").slideToggle();
return false;
});