depot 17h34
This commit is contained in:
parent
2d94439b83
commit
97590ec7f0
4
TD4/README.MD
Normal file
4
TD4/README.MD
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Programmation Web – client riche - TD4
|
||||||
|
|
||||||
|
## Exercice 1
|
||||||
|
|
BIN
TD4/TP4_JS_M413_2016.pdf
Normal file
BIN
TD4/TP4_JS_M413_2016.pdf
Normal file
Binary file not shown.
43
TD4/css/td3-exo1.css
Normal file
43
TD4/css/td3-exo1.css
Normal file
@ -0,0 +1,43 @@
|
|||||||
|
html {
|
||||||
|
font-size: 62.5%;
|
||||||
|
}
|
||||||
|
body {
|
||||||
|
margin: 0px;
|
||||||
|
padding: 0px;
|
||||||
|
}
|
||||||
|
#jeu {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
background-color:#00008B;
|
||||||
|
margin:0px;
|
||||||
|
width: 306px;
|
||||||
|
height:306px;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
.case {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
background-color:#1E90FF;
|
||||||
|
margin:0px;
|
||||||
|
padding: 0px;
|
||||||
|
width: 100px;
|
||||||
|
height:100px;
|
||||||
|
position: absolute;
|
||||||
|
z-index:1;
|
||||||
|
transition-property : top, left;
|
||||||
|
transition-duration : 1s;
|
||||||
|
}
|
||||||
|
div{
|
||||||
|
padding:0px;
|
||||||
|
}
|
||||||
|
h1{
|
||||||
|
text-align: center;
|
||||||
|
font-size: 4rem;
|
||||||
|
margin:0;
|
||||||
|
padding: 27px 0px;
|
||||||
|
}
|
||||||
|
.vide {
|
||||||
|
background-color:#00008B;
|
||||||
|
z-index:0;
|
||||||
|
border:none
|
||||||
|
}
|
40
TD4/css/td3-exo2.css
Normal file
40
TD4/css/td3-exo2.css
Normal file
@ -0,0 +1,40 @@
|
|||||||
|
html { font-size: 62.5%; }
|
||||||
|
body { margin: 0px; padding: 0px; color : black}
|
||||||
|
#jeu {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
background-color:#00008B;
|
||||||
|
margin:0px;
|
||||||
|
width: 408px;
|
||||||
|
height:408px;
|
||||||
|
}
|
||||||
|
|
||||||
|
#commande {
|
||||||
|
margin:0px;
|
||||||
|
height:30px;
|
||||||
|
position: absolute;
|
||||||
|
left : 410px;
|
||||||
|
top: 0px;
|
||||||
|
}
|
||||||
|
.case {
|
||||||
|
border-style:solid;
|
||||||
|
border-width:1px;
|
||||||
|
border-color:black;
|
||||||
|
background-color:#1E90FF;
|
||||||
|
margin:0px;
|
||||||
|
padding: 0px;
|
||||||
|
width: 100px;
|
||||||
|
height:100px;
|
||||||
|
position: absolute;
|
||||||
|
z-index:1;
|
||||||
|
transition-property : top, left;
|
||||||
|
transition-duration : 1s;
|
||||||
|
text-align: center;
|
||||||
|
font-size: 4rem;
|
||||||
|
line-height: 100px;
|
||||||
|
}
|
||||||
|
.new {
|
||||||
|
color : red;
|
||||||
|
}
|
||||||
|
|
||||||
|
.videold { background-color:#00008B; z-index:0; border:none}
|
34
TD4/index.html
Normal file
34
TD4/index.html
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
<?php $url = $_POST["rssURL"]; if ($url != ""){ $monRSSDoc = new DOMDocument(); if ($monRSSDoc->load($url)){ header('Content-Type: text/xml'); echo $monRSSDoc->saveXML(); }else{ echo "erreur de lecture"; } }else{ echo "URL vide"; } ?>
|
||||||
|
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset='utf-8'>
|
||||||
|
<meta http-equiv='X-UA-Compatible' content='IE=edge'>
|
||||||
|
<title>M4103 - Programmation Web Client Riche</title>
|
||||||
|
<meta name='viewport' content='width=device-width, initial-scale=1'>
|
||||||
|
<link rel='stylesheet' type='text/css' media='screen' href='../css/main.css'>
|
||||||
|
<h1>M4103 - Programmation Web Client Riche</h1>
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<h2>Un nouveau TD</h2>
|
||||||
|
<form>
|
||||||
|
<div id="inputs">
|
||||||
|
<input type="radio" onchange="selectionRSS(this.value)" id="url" name="url" value="http://www.societe-informatique-de-france.fr/feed/" /><label for="sif">La sif</label><br />
|
||||||
|
<input type="radio" onchange="selectionRSS(this.value)" id="url" name="url" value="http://filuns.unice.fr/accueil/@@rss_view" /><label for="unice">Unniversité de Nice</label><br />
|
||||||
|
<input type="radio" onchange="selectionRSS(this.value)" id="url" name="url" value="http://filuns.unice.fr/accueil/@@rss_view" /><label for="sophia">Sophia Antipolis</label><br />
|
||||||
|
<input type="radio" onchange="selectionRSS(this.value)" id="url" name="url" value="http://pro.clubic.com/actualites.rss" /><label for="clubic">Clubic</label><br />
|
||||||
|
<input type="radio" onchange="selectionRSS(this.value)" id="url" name="url" value="https://leponeyblanc.fr/api/rss/feed/" /><label for="clubic">Le Poney Blanc</label><br />
|
||||||
|
<input type="radio" onchange="selectionRSS(this.value)" id="url" name="url" value="https://www.otk-expert.fr/wp-content/plugins/forum-server/feed.php?topic=all" /><label for="clubic">OTK Expert</label><br />
|
||||||
|
<input type="radio" onchange="selectionRSS(this.value)" id="url" name="url" value="http://localhost/M4103-Programmation-Web-Client-Riche/jj64.txt" /><label for="sif">JJ64</label><br />
|
||||||
|
</div>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
<p>Reçu :</p><br />
|
||||||
|
<div id="retour"></div>
|
||||||
|
|
||||||
|
<script src="./js/main.js"></script>
|
||||||
|
|
||||||
|
</html>
|
18
TD4/js/main.js
Normal file
18
TD4/js/main.js
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
console.log("Chargement...");
|
||||||
|
|
||||||
|
function init() {
|
||||||
|
console.log("Initialisation...");
|
||||||
|
}
|
||||||
|
|
||||||
|
function selectionRSS(site) {
|
||||||
|
document.getElementById("retour").innerHTML = "";
|
||||||
|
var xhttp = new XMLHttpRequest();
|
||||||
|
xhttp.onreadystatechange = function() {
|
||||||
|
if (this.readyState == 4 && this.status == 200) {
|
||||||
|
document.getElementById("retour").innerHTML = this.responseText;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
console.log(site);
|
||||||
|
xhttp.open("GET", site, true);
|
||||||
|
xhttp.send();
|
||||||
|
}
|
BIN
TD4/mémo http.pdf
Normal file
BIN
TD4/mémo http.pdf
Normal file
Binary file not shown.
15
TD4/proxy.php
Normal file
15
TD4/proxy.php
Normal file
@ -0,0 +1,15 @@
|
|||||||
|
<?php
|
||||||
|
$url = $_POST["rssURL"];
|
||||||
|
if ($url != ""){
|
||||||
|
$monRSSDoc = new DOMDocument();
|
||||||
|
if ($monRSSDoc->load($url)){
|
||||||
|
header('Content-Type: text/xml');
|
||||||
|
echo $monRSSDoc->saveXML();
|
||||||
|
} else {
|
||||||
|
echo "erreur de lecture";
|
||||||
|
}
|
||||||
|
} else {
|
||||||
|
echo "URL vide";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Loading…
x
Reference in New Issue
Block a user