Skip to content
This repository has been archived by the owner on Nov 29, 2024. It is now read-only.

Commit

Permalink
clean
Browse files Browse the repository at this point in the history
  • Loading branch information
BaseMax committed Sep 8, 2024
1 parent 60a0357 commit 4b9f0f5
Show file tree
Hide file tree
Showing 20 changed files with 191 additions and 4,840 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
19 changes: 11 additions & 8 deletions salam-online.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@
<title>آزمایش آنلاین زبان برنامه نویسی سلام - برنامه نویسی برای همه</title>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/png" sizes="192x192" href="android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="android-chrome-512x512.png">
<link rel="apple-touch-icon" href="apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="favicon-32x32.png">
<link rel="shortcut icon" href="favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style.css">
<link rel="icon" type="image/png" sizes="192x192" href="image/android-chrome-192x192.png">
<link rel="icon" type="image/png" sizes="512x512" href="image/android-chrome-512x512.png">
<link rel="apple-touch-icon" href="image/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="16x16" href="image/favicon-16x16.png">
<link rel="icon" type="image/png" sizes="32x32" href="image/favicon-32x32.png">
<link rel="shortcut icon" href="image/favicon.ico" type="image/x-icon">
<link rel="stylesheet" href="style/style.css">
</head>

<body>
Expand All @@ -25,10 +25,13 @@
</label>
</div>
</header>

<textarea id="code"></textarea>

<iframe></iframe>

<pre></pre>

<script src="script.js"></script>
<script src="script/script.js"></script>
</body>
</html>
4,659 changes: 0 additions & 4,659 deletions salam-wa.js

This file was deleted.

Binary file removed salam-wa.wasm
Binary file not shown.
Binary file removed salam_logo.png
Binary file not shown.
2 changes: 1 addition & 1 deletion script.js → script/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ executeButton.addEventListener('click', () => {

const script = document.createElement('script');
script.type = 'text/javascript';
script.src = 'salam-wa.js';
script.src = 'salam/salam-wa.js';
document.body.appendChild(script);

/*
Expand Down
28 changes: 18 additions & 10 deletions service-worker.js → script/service-worker.js
Original file line number Diff line number Diff line change
@@ -1,16 +1,24 @@
const CACHE_NAME = 'salam-cache-v1';
const ASSETS_TO_CACHE = [
'style.css',
'script.js',
'salam-wa.js',
'salam-wa.wasm',
'android-chrome-192x192.png',
'android-chrome-512x512.png',
'apple-touch-icon.png',
'favicon-16x16.png',
'favicon-32x32.png',
'favicon.ico',
'site.webmanifest',

// style
'style/style.css',

// script
'script/script.js',

// salam
'salam/salam-wa.js',
'salam/salam-wa.wasm',

// images
'images/android-chrome-192x192.png',
'images/android-chrome-512x512.png',
'images/apple-touch-icon.png',
'images/favicon-16x16.png',
'images/favicon-32x32.png',
'images/favicon.ico',
];

self.addEventListener('install', event => {
Expand Down
2 changes: 1 addition & 1 deletion site.webmanifest
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"name":"زبان برنامه نویسی سلام","short_name":"زبان سلام","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ff5c00","background_color":"#ffffff","display":"standalone"}
{"name":"زبان برنامه نویسی سلام","short_name":"زبان سلام","icons":[{"src":"/images/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/images/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ff5c00","background_color":"#ffffff","display":"standalone"}
161 changes: 0 additions & 161 deletions style.css

This file was deleted.

Loading

0 comments on commit 4b9f0f5

Please sign in to comment.