version 3.0 of the theme -- complete overhaul
This commit is contained in:
@ -1,3 +1,4 @@
|
||||
|
||||
<html>
|
||||
<head>
|
||||
<title> Tooltip Demo</title>
|
||||
@ -19,7 +20,7 @@ $(document).ready(function(){
|
||||
/* Set the location where tooltips.json is. to demonstrate pulling from another site, I uploaded
|
||||
the tooltips.json file to another domain and enabled CORS in that domain. If you don't enable CORS on the server where the JSON file resides, developers calling the file will get errors.
|
||||
*/
|
||||
var url = "http://idratherbewriting.com/wp-content/apidemos/tooltips.json";
|
||||
var url = "http://idratherbetellingstories.com/wp-content/apidemos/tooltips.json";
|
||||
|
||||
$.get( url, function( data ) {
|
||||
|
||||
@ -62,7 +63,9 @@ body {padding-left:50px;}
|
||||
|
||||
<p>This page is purposely separated out from the rest of the theme so you can see the bare minimum code to add to a page.</p>
|
||||
|
||||
<p>Content in the tooltips (actually "popovers" according to Bootstrap lingo) is pulled in dynamically from another file on another domain here: <a href="http://idratherbewriting.com/wp-content/apidemos/tooltips.json">http://idratherbewriting.com/wp-content/apidemos/tooltips.json</a>. </p>
|
||||
<p>Content in the tooltips (actually "popovers" according to Bootstrap lingo) is pulled in dynamically from another file on another domain here: <a href="http://idratherbetellingstories.com/wp-content/apidemos/tooltips.json">http://idratherbetellingstories.com/wp-content/apidemos/tooltips.json</a>. </p>
|
||||
|
||||
<p>I could have simply pulled it from the tooltips.json file in this theme, but I wanted to simulate serving up the data file from a remote site, like you might do with a UI.</p>
|
||||
|
||||
<div class="alert alert-info" role="alert"><b>Note:</b> Make sure you view the file source so you can read the notes I've added in code comments.</div>
|
||||
|
||||
|
Reference in New Issue
Block a user