This file contains 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
function getCookie(name) { | |
var dc = document.cookie; | |
var prefix = name + "="; | |
var begin = dc.indexOf("; " + prefix); | |
if (begin == -1) { | |
begin = dc.indexOf(prefix); | |
if (begin != 0) return null; | |
} | |
else | |
{ |
This file contains 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
//Предисловие | |
Первым делом нужно установить wifi адаптер, если он еще не установлен, и убедиться в том, что он включен и работает. | |
Далее нужно проверить что соединение с Интернет работает. | |
После этого нужно проверить запущена ли служба "Служба автонастройки WLAN". Обычно режим ее запуска "Вручную", | |
а значит она может быть остановлена. Если вы планируете использовать создаваемую точку доступа постоянно, | |
то лучше перевести эту службу в режим запуска "Автоматически". | |
Также нужно проверить чтобы у службы "Общий доступ к подключению к Интернет (ICS)" тоже был режим запуска "Автоматически". | |
Еще нужно проверить чтобы у службы "Маршрутизация и удаленный доступ" тоже был режим запуска "Автоматически". | |
И чтобы эта служба работала. Возможны ситуации когда тип запуска этой службы установлен в авто, | |
но при запуске Windows 7 она останавливается и соответственно другие в этом случае не будут получать Интернет. |
This file contains 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
//CSS | |
<style> | |
.ui-corner-all { | |
-moz-border-radius: 0; | |
-webkit-border-radius: 0; | |
border-radius: 0; | |
} | |
.ui-menu { | |
border: 1px solid lightgray; | |
font-family: Verdana, Arial, Helvetica, sans-serif; |
This file contains 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 | |
/** | |
* This is a PHP library that handles calling reCAPTCHA. | |
* - Documentation and latest version | |
* https://developers.google.com/recaptcha/docs/php | |
* - Get a reCAPTCHA API Key | |
* https://www.google.com/recaptcha/admin/create | |
* - Discussion group | |
* http://groups.google.com/group/recaptcha | |
* |
This file contains 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 button[type="submit"]').click(function(e) { | |
e.preventDefault(); | |
let $policy = $(this).closest('form').find('.policy-box'); | |
$policy.addClass('error'); | |
if ( $policy.hasClass('checked') ) { | |
if ($(this).closest('form').valid()) { | |
$(this).submit(); | |
} | |
$policy.removeClass('error'); | |
} |
This file contains 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
$('.clients__icon').mousemove(function(e){ | |
var $event = e; | |
var offset = $('.clients__icon').offset(); | |
var relativeX = ($event.pageX + 100); | |
var relativeY = ($event.pageY - $('#clients-preview').innerHeight()); | |
$('#clients-preview').css('left', relativeX + 'px'); | |
$('#clients-preview').css('top', relativeY + 'px'); | |
}); | |
$('.clients__icon').mouseenter(function(){ | |
var cID = $(this).attr('data-client'); |
This file contains 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
// left: 37, up: 38, right: 39, down: 40, | |
// spacebar: 32, pageup: 33, pagedown: 34, end: 35, home: 36 | |
var keys = {37: 1, 38: 1, 39: 1, 40: 1}; | |
function preventDefault(e) { | |
e = e || window.event; | |
if (e.preventDefault) | |
e.preventDefault(); | |
e.returnValue = false; | |
} |
This file contains 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
var $user; | |
var $valid_user = 0; | |
var $avatar_url; | |
$.ajax({ | |
url: 'https://api.vk.com/method/groups.getMembers?group_id=stageofficial&fields=photo_50,online', | |
dataType: "jsonp", | |
success:function(event){ | |
var i = 0; | |
for ( i = 0; $valid_user < 6; i++ ) { | |
$user = event.response.users[i]; |
This file contains 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
<script> | |
$(function(){ | |
$('.menu_item').click(function(){ | |
$(this).toggleClass('active'); | |
$(this).css('color','#000'); | |
if ( !($(this).hasClass('active')) ) { | |
$(this).css('color','#fff'); | |
} | |
}); | |
$('#count').click(function(){ |
This file contains 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
<script type="text/javascript" language="javascript"> | |
function call() { | |
var msg = $('#formx').serialize(); | |
$.ajax({ | |
type: 'POST', | |
url: 'res.php', | |
data: msg, | |
success: function(data) { | |
$('#results').html(data); | |
}, |