-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtemplate.php
More file actions
37 lines (33 loc) · 1.11 KB
/
template.php
File metadata and controls
37 lines (33 loc) · 1.11 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="styles.css" rel="stylesheet"/>
<link id="u-theme-google-font" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Playfair+Display:400,400i,700,700i,900,900i|Source+Sans+Pro:200,200i,300,300i,400,400i,600,600i,700,700i,900,900i">
<link id="u-page-google-font" rel="stylesheet" href="https://fonts.googleapis.com/css?family=Oswald:200,300,400,500,600,700">
<title>Document</title>
</head>
<body>
<h1>Blog Posts</h1>
<div class="articles">
<?php
foreach($articles as $article)
{
//echo $article->title()."<br/>";
include 'article-accueil.php';
}
?>
</div>
<script>
function changeTitle(){
document.querySelector('h1').innerHTML = document.getElementById('changeTitle').value;
}
</script>
<div class="changeTitle">
<input id="changeTitle" name="changeTitle" type="text" value=""/>
<button onclick="changeTitle()">ChangeTitle</button>
</div>
</body>
</html>