|
|
(121 intermediate revisions by the same user not shown) |
Line 1: |
Line 1: |
− | /* Any JavaScript here will be loaded for all users on every page load. */
| |
| | | |
− | //Insert 'Justice for Animals .org' in the DOM, for the header
| |
− | jQuery(document).ready(function () {
| |
− | document.body.insertAdjacentHTML( 'afterbegin', '<div id="jfatitle"><a href="/Main_Page">Justice for Animals .org</a></div>');
| |
− | })
| |
− |
| |
− | jQuery(document).ready(function () {
| |
− | var jfa_short_url = jQuery("span.jfa-page-shorturl a").attr("href");
| |
− | console.log(jfa_short_url);
| |
− | jQuery(".jfa-share-option-url a").attr("href",jfa_short_url);
| |
− |
| |
− | jQuery(".jfa-share-option-url a").click(function(event) {
| |
− | event.preventDefault();
| |
− | alert( "Handler for .click() called." );
| |
− | });
| |
− |
| |
− | })
| |