<commit_before>---
layout: post
title:  "Moon Jekyll Theme"
date:   2016-06-21
excerpt: "Minimal, one column Jekyll theme for your blog."
project: true
tag:
- jekyll 
- moon
- blog
- about
- theme
comments: true
---

## Testing<commit_msg>Update web-storage.md<commit_after>---
layout: post
title:  "Moon Jekyll Theme"
date:   2016-06-21
excerpt: "Minimal, one column Jekyll theme for your blog."
project: true
tag:
- jekyll 
- moon
- blog
- about
- theme
comments: true
---

<html>
<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8">
<title>Percobaan HTML5 Local Storage</title>
<script type="text/javascript" charset="utf-8" src="jquery.js"></script>
<script type="text/javascript" >
// fungsi simpan(), ketika tombol diklik maka string 
// di dalam input akan tersimpan ke dalam storage browser
function simpan() {		
	var storage = document.getElementById('nama').value;
	localStorage.setItem('Text',storage);
} 
// tampil() akan menampilkan string yang tersimpan
// ke tag div yang ditentukan "hasil"
function tampil() {
	var tampilNama = localStorage.getItem('Text');
	if (tampilNama) {
	x = document.getElementById('tampil');
	x.innerHTML=tampilNama;
	}
}
// fungsi untuk menghapus localstorage browser
function hapus() {
	localStorage.removeItem('Text');
}
</script>
</head>
	<body>
		<input type="text" id="nama" />
		<input type="button" value="Simpan" onclick="simpan()" />
		<input type="button" value="Tampil" onclick="tampil()" />
		<input type="button" value="Hapus" onclick="hapus()" />
		<div id="tampil"></div>
	</body>
</html>
{'fraction_non_alphanumeric': 0.16081684747925973, 'fraction_numerical': 0.012125079770261647, 'mean_word_length': 4.580071174377224, 'pattern_counts': {'":': 0, '<': 22, '<?xml version=': 0, '>': 22, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6775047', 'n_tokens_mistral': 592, 'n_tokens_neox': 563, 'n_words': 147}