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" src="https://code.jquery.com/jquery-1.9.1.min.js"></script> | |
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/jquery.devbridge-autocomplete/1.4.3/jquery.autocomplete.min.js"></script> | |
<style type="text/css"> | |
.autocomplete-suggestions { border: 1px solid #999; background: #fff; cursor: default; overflow: auto; } | |
.autocomplete-suggestion { padding: 10px 5px; font-size: 1.2em; white-space: nowrap; overflow: hidden; } | |
.autocomplete-selected { background: #f0f0f0; } | |
.autocomplete-suggestions strong { font-weight: normal; color: #3399ff; } | |
</style> | |
<div id="searchfield"> |
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="elementToprint"> | |
Text to be in the PDF, simple function create by Sanix darker!!! | |
</div> | |
<input type="button" value="IMPRIME" onclick="PrintElem('elementToprint');"> | |
<script type="text/javascript"> | |
function PrintElem(elem) | |
{ | |
var mywindow = window.open('', 'PRINT', 'height=400,width=600'); |
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
<h1>CSS Directional Tooltips</h1> | |
<div class="demo"> | |
<p>Data attribute only <a href="#" data-tooltip="I’m the tooltip text">Tooltip</a></p> | |
<p><code>.tooltip</code> <a href="#" class="tooltip" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><code>.tooltip-top</code> <a href="#" class="tooltip-top" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><code>.tooltip-right</code> <a href="#" class="tooltip-right" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><code>.tooltip-bottom</code> <a href="#" class="tooltip-bottom" data-tooltip="I’m the tooltip text.">Tooltip</a></p> | |
<p><a href="#" class="tooltip-left" data-tooltip="I’m the tooltip text.">Tooltip</a> <code>.tooltip-left</code></p> |
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
#!/usr/bin/ruby | |
## Count to 50 | |
1.upto(50) {|n| puts n} | |
## Count Down to 1 | |
50.downto(1) {|n| puts n} | |
## Count to 20 | |
(1..20).each {|n| puts n} |
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
.top-box | |
{ | |
box-shadow: inset 0 7px 9px -7px rgba(0,0,0,0.4); | |
} | |
.left-box | |
{ | |
box-shadow: inset 7px 0 9px -7px rgba(0,0,0,0.4); | |
} | |
.right-box | |
{ |
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 | |
require 'recaptchalib.php'; | |
$siteKey = 'XXXXXXXXXXXXXXXXXXXXXX'; // votre clé publique | |
$secret = 'XXXXXXXXXXXXXXXXXXXXXX'; // votre clé privée | |
?> | |
<form> | |
.... | |
<div class="g-recaptcha" id="Optional-id"></div> | |
</form> |
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
// Using the core $.ajax() method | |
$.ajax({ | |
// The URL for the request | |
url: "post.php", | |
// The data to send (will be converted to a query string) | |
data: { | |
id: 123 | |
}, | |
// Whether this is a POST or GET request | |
type: "GET", |
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 if(strpos($_SERVER['REQUEST_URI'],"home")){ // For example blabla.com/home | |
// Do something | |
}?> |
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 | |
// Configure your keys (secret, piblic): https://www.google.com/recaptcha | |
$siteKey = 'XXXXXXXXXXXXXXXXXXXXXX'; // votre clé publique | |
?> | |
<form action="submit.php"> | |
.... | |
<div class="g-recaptcha" id="Optional-id"></div> | |
</form> | |
<script src="https://www.google.com/recaptcha/api.js?onload=onloadCallback&render=explicit" async defer></script> | |
<script type="text/javascript" charset="utf-8"> |
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
$valid_formats = array("jpg", "png", "gif", "bmp"); | |
$max_file_size = 1024*7500; //100 kb | |
$path = "assets/img/photo/"; // Upload directory | |
$count = 0; | |
if(isset($_POST) and $_SERVER['REQUEST_METHOD'] == "POST"){ | |
foreach ($_FILES['files']['name'] as $f => $name) { | |
if ($_FILES['files']['error'][$f] == 4) { |