Skip to content

Instantly share code, notes, and snippets.


Block or report user

Report or block ColtMoney

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
View Indent Fixed Menu
var h_hght = 105; // высота шапки
var h_mrg = 0; // отступ когда шапка уже не видна
var top = $(this).scrollTop();
var elem = $('.top_nav');
if (top+h_mrg < h_hght) {
elem.css('top', (h_hght-top));
} else {
elem.css('top', h_mrg);
View Pop Form FancyBox
<div class="hidden">
<form id="callback" class="pop_form">
<input type="text" name="name" placeholder="имя" required><br>
<input type="text" name="phone" placeholder="телефон" required><br>
<button class="button">Заказать</button>
display: none;
View Waypoint
// Cache selectors
var lastId,
topMenu = $(".main_mnu"),
topMenuHeight = topMenu.outerHeight() + 15,
// All list items
menuItems = topMenu.find("a"),
// Anchors corresponding to menu items
scrollItems = {
var item = $($(this).attr("href"));
if (item.length) {
View Wordpress query_post
<?php if ( have_posts() ) : query_posts('p=1');
while (have_posts()) : the_post(); ?>
<?php the_title(); ?>
<?php the_content(); ?>
<?php the_post_thumbnail(array(100, 100)); ?>
<? endwhile; endif; wp_reset_query(); ?>
View Wordpress get category
$idObj = get_category_by_slug('charity');
$id = $idObj->term_id;
<?php echo get_cat_name($id) ?>
View Toggle-mnu.js
$(".main_mnu ul").slideToggle();
View Toggle-mnu.html
<div class="hamburg-inner">
<button class="hamburger hamburger--collapse">
<span class="hamburger-box">
<span class="hamburger-inner"></span>
View Toggle-mnu.sass
padding: 16px 0
display: inline-block
cursor: pointer
transition-property: opacity, -webkit-filter
transition-property: opacity, filter
transition-property: opacity, filter, -webkit-filter
transition-duration: 0.15s
transition-timing-function: linear
font: inherit
View JQuery Alert Box
var whitebg = document.getElementById("white_background");
var dlg = document.getElementById("dlgbox"); = "none"; = "none";
setTimeout(function() {
}, 1000);
View JQueryAcordion.js
$(".category-wrap span").click(function(){
if($(".sub-catalog").is(":visible") == true){
if($(this).parent().find(".sub-catalog").is(":hidden") == true){
$(".category-wrap span").find(".fa").removeClass("fa-angle-down").addClass("fa-angle-right");
You can’t perform that action at this time.