/posix.js

Perhaps the smallest JavaScript library ever

Primary LanguageJavaScriptMIT LicenseMIT

posix.js

GitHub issues GitHub license

  • Author: Damien O'Halloran, The George Washington University 2017
  • Perhaps the smallest JavaScript library ever
  • Minified version is 536 bytes
  • Dynamically inserts the Current Unix Timestamp onto a webpage

This is all you need to add to your HTML

with jQuery:

<body>
	<!--plays very nicely with jQuery-->
	<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> 
	<script src="posix.js"></script>
	<!--Every time the user mouses over the placeholder tag
	the Unix Timestamp will dynamically appear-->
	<h1 id='showUTS'></h1>
	<!--placeholder text-->
	<h1 id="utsTag" onmouseover="UTS$('#showUTS','#utsTag')">POSIX</h1>
</body>

without jQuery:

<body>
	<script src="posix.js"></script>
	<!--Every time the user mouses over the placeholder tag
	the Unix Timestamp will dynamically appear-->
	<h1 id='showUTS'></h1>
	<!--placeholder text-->
	<h1 id="utsTag" onmouseover="UTS$('showUTS','utsTag')">POSIX</h1>
</body>

Contributing

All contributions are welcome.

Support

If you have any problem or suggestion please open an issue here.

License

MIT