blob: 0a7c29ae5dfba02ed7476582ccbec92cc0dd728e [file] [log] [blame]
var LINE_TOOLTIPS={"compute-1":{1:"Import libcloud type we need",2:['Import "get_driver" method for obtaining a reference to the driver '," class."],4:["Obtain a reference to the provider driver class. <br /><br />Keep in ","mind that Libcloud supports more than 30 providers total and ","Provider.RACKSPACE constant can be replaced with a provider constant ","of any other of the supported providers."],5:["Instantiate the driver with your provider credentials. ",'Rackspace driver supports multiple regions so in this case, "region" ',
"argument is used as well."],7:["List all the available sizes. <br /><br />In Libcloud, size ","represents a server hardware configuration. Usually this is the amount ","of the available RAM, bandwidth, CPU speed and disk size. Most of ","the drivers also expose an hourly price (in US dollars) for the Node ","of this size."],8:["List all the available images.<br /><br />In Libcloud, image ","represents an operating system image."],10:"Select a size to use.",11:"Select an image to use.",13:"Create a node using a previously selected size and image.",
14:"Print representation of the created Node object."},"dns-1":{1:"Import libcloud types we need",2:['Import "get_driver" method for obtaining a reference to the driver '," class."],4:"Obtain a reference to the provider driver class.",5:"Instantiate the driver with your provider credentials.",7:"List all the available zones (domains) on this account.",8:"Select the zone to operate on.",10:['Create a new "A" record with a name of "www" and a value of ','"127.0.0.1" under the selected zone.'],11:"Print representation of the created Record object."}};
jQuery(document).ready(function(a){a(".example code div[class]").on("mouseover click",function(c){var b;var d=a(this).closest("div.example").attr("data-example");if(b=LINE_TOOLTIPS[d]){d=void 0!==a(this).attr("title");var e=a(this).attr("class").replace("line-","");if(b=b[e])d?"click"===c.type&&a(this).popover("toggle"):(c=b instanceof Array?b.join(""):b,c={content:c,placement:"auto right",html:!0,trigger:"hover",container:"body"},a(this).popover(c),a(this).popover("show"))}})});