This repository has been archived by the owner on Aug 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
81 lines (74 loc) · 1.89 KB
/
index.html
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
<!DOCTYPE html>
<html lang="fa" dir="rtl">
<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">
<title>Maktab-Sharif (JavaScript basics)</title>
<link href="dist/styles/reset.css" rel="stylesheet" />
<link href="dist/styles/site.css" rel="stylesheet" />
<link href="dist/styles/helper.css" rel="stylesheet" />
<style>
</style>
<script>
//alert('Hi');
// this is a comment
var my_number = 10;
var my_string = "hello";
var my_array = [10, 20, "name", true];
var my_object = {
name: "javi",
city: "Barcelona"
};
/*
comments
*/
function say(str) {
for (var i = 0; i < 10; ++i)
console.log(" say: " + str);
}
say('mr kebria');
</script>
</head>
<body>
<!-- <script>
alert('at the first of body')
</script> -->
<div id="header">
JavaScript basics
</div>
<div id="main">
<div id="sidemenu">
<ul>
<li><a href="index.html" class="active">صفحه اصلی</a></li>
<li><a href="products.html">لیست محصولات</a></li>
<li><a href="contact-us.html">تماس با ما</a></li>
<li><a href="about-us.html">درباره ما</a></li>
</ul>
</div>
<div id="content">
<h1 class="intro">H1</h1>
<br><br>
<div id="mydiv">
This is my div
</div>
<button id="btnChange" onclick="changeMyDiv('hasan')">Change above text</button>
</div>
</div>
<div id="footer">
<p>
برای استفاده از این سایت، ذکر «منبع» کافیست. تمام حقوق اين وبسايت نیز برای --- است.
</p>
</div>
<script src="dist/scripts/site.js"></script>
<script>
//document.body.children[1].children[0]
var title = document.querySelector("h1.intro");
title.innerHTML = "Hello Mr Heydari";
//document.write("<br /> added by <b>js</b>");
//
/*
*/
</script>
</body>
</html>