-
Notifications
You must be signed in to change notification settings - Fork 3
Installation into Wordpress
fuzzysteve edited this page Apr 11, 2012
·
3 revisions
This was the initial reason for writing this code.
In your theme header:
Ensure the following exists.
<?php wp_enqueue_script(“jquery”); ?>
<?php wp_enqueue_script(“ship.js”,“http://www.fuzzwork.co.uk/ships/ship.js”); ?>
<?php wp_head(); ?>
If any don’t, make sure to add them. (the ship.js one almost certainly won’t.)
Then, to use it:
<div id="ship"></div>
<script type=“text/javascript”>insertship(‘ship’,‘638:19739;6:22291;5:1952;2:2024;1:2281;3:25948;3:2185;5::’);
</script>
The ship in the insert ship call refers to the div before it. you can have multiple ships, by naming them differently. The long string is the ship DNA, as from http://wiki.eveonline.com/en/wiki/Ship_DNA