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
<div id="mask"></div> | |
#mask{ | |
position:fixed; | |
width:100%; | |
height:100%; | |
background: black rgba(0,0,0,.3); /* You can make this slightly transparent or transparent */; | |
top:0; | |
left:0; | |
display:none; |
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
$(document).keydown(function(e){ | |
if(e.ctrlKey && e.keyCode == 65){ | |
// do some stuff | |
} | |
if(e.ctrlKey && e.keyCode == 78){ | |
// do some stuff | |
} | |
}) |
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
<div class="panel panel-default"> | |
<table class="table table-condensed" > | |
<thead> | |
<tr> | |
<th>Col1</th> | |
<th>Col2</th> | |
<th>Col3</th> | |
</tr> | |
</thead> | |
</table> |
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
setTimeout(function() { | |
window.location.href = "http://test.example.com/;" | |
}, 5000); |
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
<div class="container"> | |
<div class="row clearfix"> | |
<div class="col-md-12 column"> | |
<div class="tabbable" id="tabs-347287"> | |
<ul class="nav nav-tabs"> | |
<li class="active"> | |
<a href="#panel-947812" data-toggle="tab">Section 1</a> | |
</li> | |
<li> | |
<a href="#panel-240432" data-toggle="tab">Section 2</a> |
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 iframe = document.getElementById(FrameId); | |
iframe.src = iframe.src; |
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 currentTallest = 0, | |
currentRowStart = 0, | |
rowDivs = new Array(), | |
$el, | |
topPosition = 0; | |
$('.blocks').each(function() { | |
$el = $(this); | |
topPostion = $el.position().top; |
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
$(".check-file").change(function(){ | |
var $this = $(this), | |
value = $this.val().replace(/c:\\fakepath\\/i, ''), | |
url = '<?php echo WEB_ROOT;?>admin/upload/csv/' | |
if(value!=''){ | |
$.get(url+value) | |
.done(function() { | |
alert('File you have selected has already been uploaded, please check the list below for details.') |
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
$sql = array(); | |
foreach( $data as $row ) { | |
$sql[] = "('".mysql_real_escape_string($row['text'])."', '".$row['category_id']."')"; | |
} | |
mysql_query('INSERT INTO table (text, category) VALUES '.implode(',', $sql)); |
OlderNewer