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
<html> | |
<head> | |
<title>Experiment prevent pasting</title> | |
</head> | |
<body> | |
<h2>Login to your account</h2> | |
<p for="login">Login</p> | |
<input type="text" name="login" id="login" value="[email protected]" /> | |
<p for="login">Password</p> | |
<input type="password" name="password" id="password" /> |
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
### Keybase proof | |
I hereby claim: | |
* I am mikescops on github. | |
* I am corentin (https://keybase.io/corentin) on keybase. | |
* I have a public key ASCZwl_30MXxMsKE-w47NHn8tiYnCMUgIEyv7MtN7lxWuQo | |
To claim this, I am signing this object: |
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
<head> | |
<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/jquery/1.7.2/jquery.min.js"></script> | |
</head> | |
<body> | |
<p><a href="no-javascript.html" id="getNumber">Générer</a> un nombre aléatoire. </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
<script src="http://cdn.jsdelivr.net/jquery/2.1.0/jquery.min.js"></script> | |
<script type="text/javascript"> | |
// Import JSON data | |
var dailyAPI = "https://api.dailymotion.com/video/<video_id>?fields=onair"; | |
$.getJSON(dailyAPI, function (json) { | |
// Set the variables from the results array |
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 | |
$url_video = file_get_contents('https://api.dailymotion.com/video/<id_video>?fields=onair'); // change <id_video> by the id of your video. | |
$json = json_decode($url_video); | |
if ( $json->onair == 'true') | |
{ | |
echo "Live en cours"; | |
} | |
else | |
{ |