Skip to content

Commit

Permalink
update, config, scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
harrymkt committed Mar 12, 2024
1 parent 8b5c025 commit d57aea0
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 15 deletions.
23 changes: 12 additions & 11 deletions config/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ <h1 id="mainc">site config</h1>
<legend>time format</legend>
<h2>time format</h2>
<p id="timeformat"></p>
<label name="labeltf">choose time format</label>
<label for="timeformatinp">choose time format</label>
<select name="labeltf" id="timeformatinp" placeholder="choose time format" label="choose time format" value="choose">
<option value="">select format</option>
<option select value="12">12 hour</option>
Expand All @@ -31,12 +31,13 @@ <h2>time format</h2>
<legend>visiter name for the site</legend>
<h2>visiter name</h2>
<p id="visitname"></p>
<input id="visitnameinp" type="text" placeholder="enter your name to use">
<label for="visitnameinp">enter your name that will be used on the site</label>
<input id="visitnameinp" type="text" placeholder="enter your name to use"></input>
</fieldset>

<input type="submit" onclick="formsub();" placeholder="Save" value="Save"></input>
<fieldset>
<legend>reset config</legend>
<legend><h2>reset config</h2></legend>
<input type="button" onclick="removeallcf();" placeholder="remove all configs" value="remove all config"></input>
</fieldset>
</form>
Expand All @@ -53,32 +54,32 @@ <h2>visiter name</h2>
startform();
function formsub()
{
let o=0;
var tf=document.getElementById("timeformatinp").value;
if(tf!==null && tf!=="")
{
if(tf!=="12") tf="24";
localStorage.setItem("timeformat",tf);
document.getElementById("timeformat").textContent="current time format, "+tf+" hour format";
o++;
}
var vu=document.getElementById("visitnameinp").value;
if(vu!==null && vu!=="")
{
if(vu==="" || vu==null) vu="visiter";
localStorage.setItem("visitname",vu);
document.getElementById("visitname").textContent="current name, "+vu;
o++
}
var msg=(o>0?o+" options saved":"options unchanged");
alert(msg);
}//end.function
function removeallcf()
{
const o=[
"timeformat",
"visitname"
];
for(var i=0;i<o.length;i++)
{
localStorage.removeItem(o[i]);
}
localStorage.clear();
startform();
var msg="complete";
alert(msg);
}
addfooter();
</script>
Expand Down
15 changes: 11 additions & 4 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,20 @@
<body>
<script>navstart();</script>
<div class="container">
<h1 id="mainc">harry min khant</h1>
<p>welcome to harry min khant. here you'll found my projects. use the navigation above</p>
<h1 id="mainc">welcome</h1>
<script>
var wp=document.createElement("p");
wp.textContent="hello "+get_storage("visitname","visiter")+", thanks for stopping bye! I hope my website will give you useful contents and creativities. have a look around!";
document.body.appendChild(wp);
</script>
<p>the navigation menu is located at the top. the footer section is located below. in the footer you'll found some links, including to my social profiles and other useful links.</p>

</div>
<h2>what can I help you with?</h2>
<ul>
<li>music design : I could design music for you, such as mixing, producing. I use reaper as the ultimit audio software.</li>
<li>coding : I could, and intrest to coding, especially contributing or helping.</li>
<li><b>music design</b> : I could design music for you, such as mixing, producing. I use reaper as the ultimit audio software.</li>
<li><b>coding</b> : I could, and intrest to coding, especially contributing or helping.</li>
<li><b>writing</b> : I love writing, especially documentations and I would like to help as much as I can.</li>
</ul>
<p>for more information about what can I help you with and If it does not listed above, please contact me.</p>

Expand Down
7 changes: 7 additions & 0 deletions privacy/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
<script>navstart();</script>
<h1 id="mainc">Privacy Policy</h1>
<p>At harry min khant, I am committed to protecting your privacy. This privacy policy explains how I collect, use, and disclose personal information in connection with my technical support services, projects, and other offerings.</p>
<p>terms used:</p>
<p>I, me, my : refers to harry min khant, the owner of this website.</p>
<script>
var vn=document.createElement("p");
vn.textContent="you, your : refers to "+get_storage("visitname","visiter");
document.body.appendChild(vn);
</script>

<h2>Collection of Information</h2>
<p>I may collect personal information from you when you interact with me, such as when you contact me for technical support, sign up for my services, or submit feedback or inquiries. The information I collect may include your name, email address, phone number, and other contact information. I may also collect information about your device and operating system to help me diagnose technical issues.</p>
Expand Down
1 change: 1 addition & 0 deletions scripts/nav.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ function navstart()
{
var confg=document.createElement("a");
confg.href="/config";
confg.title="make the site as your preferences!";
confg.textContent="config site";
document.body.appendChild(confg);
// Create h1 element with id "accessibility"
Expand Down

0 comments on commit d57aea0

Please sign in to comment.