Skip to content

Instantly share code, notes, and snippets.

View AnatoliyKhaulin's full-sized avatar
🏠
Working from home

Anatoly AnatoliyKhaulin

🏠
Working from home
  • Freelance
View GitHub Profile
@AnatoliyKhaulin
AnatoliyKhaulin / geo.json
Created March 2, 2018 11:09
Yandex Map geoObjects custom balloon and pin
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@AnatoliyKhaulin
AnatoliyKhaulin / !readme.md
Created January 27, 2018 16:13
ST3 sync settings

Синхронизация настроек Sublime Text 3

@AnatoliyKhaulin
AnatoliyKhaulin / hide
Created June 9, 2015 23:16
Hide text
window.onload= function() {
document.getElementById('toggler').onclick = function() {
openbox('box', this);
return false;
};
};
function openbox(id, toggler) {
var div = document.getElementById(id);
if(div.style.display == 'block') {
div.style.display = 'none';
<?php
$recepient = "youmail@ya.ru";
$sitename = "Название сайта";
$name = trim($_GET["name"]);
$phone = trim($_GET["phone"]);
$text = trim($_GET["text"]);
$pagetitle = "Новая заявка с сайта \"$sitename\"";
@AnatoliyKhaulin
AnatoliyKhaulin / map
Last active December 23, 2015 08:45
google map api
<script src="https://maps.googleapis.com/maps/api/js?v=3.exp&amp;sensor=false"></script>
function initialize() {
// disable drag in small device
var w = Math.max(document.documentElement.clientWidth, window.innerWidth || 0);
var isDraggable = w > 480 ? true : false;
var mapOptions = {
$(document).ready(function() {
function vHeight() {
$(".class").css("min-height", $(window).height());
};
vHeight();
$(window).resize(function() {
vHeight();
});
});