Modal ('-' * 5) Modal Example that uses CSS and jQuery
A Pen by Ryan Trimble on CodePen.
html | |
header | |
body | |
body { | |
background: #A7A9AC; | |
background-image: -webkit-gradient( | |
linear, | |
left top, | |
right top, | |
color-stop(.34, rgba(230,237,241,.05)), | |
color-stop(.67, rgba(230,237,241,0))); | |
-webkit-background-size: 5px 5px; | |
} |
jQuery(document).ready(function($) { | |
$('.navigation a[href^="/' + location.pathname.split("/")[1] + '"]').addClass('active'); | |
}); | |
Или для пункта li class | |
jQuery(document).ready(function($) { | |
$('.navigation a[href^="/' + location.pathname.split("/")[1] + '"]').parent("li").addClass('active'); | |
}); |
{ "keys": ["Ctrl+f1"], "command": "toggle_side_bar" } |
<script type="text/javascript"> | |
$(document).ready(function(){ | |
var link = window.location.pathname; | |
$('.navbar li a[href="'+link+'"]').parent().addClass('active'); | |
}); | |
</script> |
<!DOCTYPE html> | |
<html> | |
<head lang="en"> | |
<meta charset="UTF-8"> | |
<title></title> | |
<meta http-equiv="refresh" content="2"> | |
<link href="//maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet"> | |
<style type="text/css"> | |
.chat-body { | |
margin-bottom: 10px; |
<?php | |
define("URL", "http://あなたの設置したPHPファイルのURL"); | |
define("TIME", time()); | |
define("__THIS_FILE__", file_get_contents(__FILE__)); | |
define("__THIS_SCRIPT__", substr(__THIS_FILE__, 0, strpos(__THIS_FILE__, "__" . "halt_compiler();") + 19)); | |
$logs = explode("\n", substr(__THIS_FILE__, strpos(__THIS_FILE__, "__" . "halt_compiler();") + 19)); | |
if (strcasecmp($_SERVER['REQUEST_METHOD'], 'post') == 0) { | |
if (isset($_POST['text']) && !empty($_POST['text']) | |
&& isset($_POST['name']) && !empty($_POST['name'])) { |
CREATE TABLE `s_chat_messages` ( | |
`id` INT(11) NOT NULL AUTO_INCREMENT , | |
`user` VARCHAR(255) NOT NULL , | |
`message` VARCHAR(255) NOT NULL , | |
`when` INT(11) NOT NULL , | |
PRIMARY KEY (`id`) | |
) ENGINE=MyISAM DEFAULT CHARSET=utf8; |
Modal ('-' * 5) Modal Example that uses CSS and jQuery
A Pen by Ryan Trimble on CodePen.
h1 { | |
text-align: center; | |
color: #FFF; | |
margin: 0; | |
} | |
.wrapper{ | |
background: #34495e; | |
width: 1000px; | |
padding: 10px; | |
margin: 0 auto; |