<?php
function printBookmark($filename, $replace = "'", $with = "%27") {
	ob_start();
	include ($filename);
	$js = ob_get_contents();
	$js = str_replace($replace, $with, $js);
	ob_end_clean();
	echo $js;
}
?>
<!DOCTYPE html>

<html>
<head>
	<meta http-equiv="Content-type" content="text/html; charset=utf-8">
	<title>jKeyMagic - bookmark</title>
	<link rel="stylesheet" href="page.css" type="text/css" media="screen" charset="utf-8">
	<style>
	.imeinput {
		margin-top: 20px;
	}
	</style>
</head>
<body>
<a href="index.html">&lt;- Back</a>
<h1>Bookmarks</h1>
<div>
	<p>Drag link to bookmark bar to save as bookmark. (Or on firefox, right click on the link and choose 'Bookmark This Link') After bookmarked it, you can use jKeyMagic anywhere on the web by clicking on saved bookmark. Bookmarks are also work on iPad/iPhone/iPod Touch, you need to sync bookmarks via Safari.</p>
	<p>These bookmarks will attach to all elements with tag <strong>TEXTAREA</strong> and <strong>INPUT</strong>. You can also try out by clicking one of the following links and see what it does.</p>
</div>
<div>

<a href='javascript:(function(){
	<?php
	printBookmark('bookmarks/Zawgyi L - Unicode.js');
	?>
})();'>jKeyMagic ZGlU</a> - ZawgyiL - Unicode
<br/>
<!-- BOOKMARK END -->
<a href='javascript:(function(){
	<?php
	printBookmark('bookmarks/Myanmar3.js');
	?>
})();'>jKeyMagic MM3</a> - Myanmar3
<br/>
<!-- BOOKMARK END -->
<a href='javascript:(function(){
	<?php
	printBookmark('bookmarks/PangLong.js');
	?>
})();'>jKeyMagic PL</a> - Panglong
<br/>
<!-- BOOKMARK END -->
<a href='javascript:(function(){
	<?php
	printBookmark('bookmarks/myWin.js');
	?>
})();'>jKeyMagic MW</a> - myWin
<br/>
<!-- BOOKMARK END -->
<a href='javascript:(function(){
	<?php
	printBookmark('bookmarks/Parabaik.js');
	?>
})();'>jKeyMagic PB</a> - Parabaik
<br/>
<!-- BOOKMARK END -->
<a href='javascript:(function(){
	<?php
	printBookmark('bookmarks/Ayar.js');
	?>
})();'>jKeyMagic AY</a> - Ayar
<br/>
<!-- BOOKMARK END -->
<a href='javascript:(function(){
	<?php
	printBookmark('bookmarks/Zawgyi L.js');
	?>
})();'>jKeyMagic ZGl</a> - ZawgyiL
<br/>
<!-- BOOKMARK END -->
</div>

<div>
	<h2> Text Areas </h2>
	<div>
		<textarea class='imeinput'></textarea>
	</div>
	<div>
		<textarea class='imeinput'></textarea>
	</div>
	<div>
		<h2> Input Fields </h2>
		<p>Text Field: <input type='text' /> &lt;- will attach only to text field
		<p>Password Field: <input type='password' /> &lt;- won't attach
		<p>File Field: <input type='file' /> &lt;- won't attach
		<p>Email Field (HTML5?): <input type='email' /> &lt;- wont attach if email field is supported by browser
	</div>
</div>
<div style="font-size:10px;absolute:fixed;bottom:5px;text-align:right;">
Powered by <a href='index.html'><font color="#ed145b">jKeyMagic</font></a>
</div>

</body>
</html>