eorzea-time
v3.0.0
Published
:clock3: A clock of the Eorzea time.
Downloads
242
Readme
eorzea-time
:clock3: A clock of the Eorzea time
Install
$ npm install --save eorzea-time
or
$ yarn add eorzea-time
or
Download the eorzea-time.min.js from releases page
Usage
HTML
<!-- ... -->
<dl>
<dt>eorzea time
<dd><span id="eorzea-time"></span>
</dl>
<script src="eorzea-time.min.js"></script>
<script>
(function() {
'use strict';
var result = document.getElementById('eorzea-time');
(function timer() {
setTimeout(function() {
var eorzeaTime = new EorzeaTime();
result.textContent = eorzeaTime.toString();
}, 1000 / 60);
})();
})();
</script>
<!-- ... -->
Node
var EorzeaTime = require('eorzea-time');
var eorzeaTime = new EorzeaTime();
console.log(eorzeaTime.toString());
ES2015
import EorzeaTime from 'eorzea-time';
const eorzeaTime = new EorzeaTime();
console.log(eorzeaTime.toString());
License
FINAL FANTASY is a registered trademark of Square Enix Holdings Co., Ltd.
FINAL FANTASY XIV (c) 2010-2016 SQUARE ENIX CO., LTD. All Rights Reserved.