diff --git a/content_script.js b/content_script.js index bd7c38d..5ec18f6 100644 --- a/content_script.js +++ b/content_script.js @@ -1,8 +1,25 @@ $(document).ready(function () { console.log('hello world!'); - // $("body").append(''); + var popoverContent; - $('[data-toggle="popover"]').popover('show'); -}); + $.get('test-menu-content.html', function (data) { + popoverContent = data; + contentReady(); + }); + function contentReady () { + $('.selected').popover({ + title: "Please select a semantic tag", + + content: popoverContent, + + html: true, + + placement: 'auto' + + }); + + $('.selected').popover('show'); + } +}); \ No newline at end of file diff --git a/manifest.json b/manifest.json index fd43952..4422da2 100644 --- a/manifest.json +++ b/manifest.json @@ -6,6 +6,9 @@ "persistent": false, "scripts": ["background.js"] }, + "web_accessible_resources": [ + "**/*.html" + ], "content_scripts": [{ "matches": [""], "css": ["bower_components/bootstrap/dist/css/bootstrap.min.css"], diff --git a/prototype-menu.html b/prototype-menu.html index 94621df..6add655 100644 --- a/prototype-menu.html +++ b/prototype-menu.html @@ -13,11 +13,13 @@

Testing ground

-

The Triumph of Cleopatra, also known as Cleopatra's Arrival in Cilicia[1] and The Arrival of Cleopatra in Cilicia,[2] is an oil painting by English artist William Etty. It was first exhibited in 1821, and is now in the Lady Lever Art Gallery in Port Sunlight across the River Mersey from Liverpool. During the 1810s Etty had become widely respected among staff and students at the Royal Academy of Arts, in particular for his use of colour and ability to paint realistic flesh tones. Despite having exhibited at every Summer Exhibition since 1811 he attracted little commercial or critical interest. In 1820 he exhibited The Coral Finder, which showed nude figures on a gilded boat. This painting attracted the attention of Sir Francis Freeling, who commissioned a similar painting on a more ambitious scale.

+

The Triumph of Cleopatra, also known as Cleopatra's Arrival in Cilicia[1] and The Arrival of Cleopatra in Cilicia,[2] is an oil painting by English artist William Etty. It was first exhibited in 1821, and is now in the Lady Lever Art Gallery in Port Sunlight across the River Mersey from Liverpool. During the 1810s Etty had become widely respected among staff and students at the Royal + + Academy of Arts, in particular for his use of colour and ability to paint realistic flesh tones. Despite having exhibited at every Summer Exhibition since 1811 he attracted little commercial or critical interest. In 1820 he exhibited The Coral Finder, which showed nude figures on a gilded boat. This painting attracted the attention of Sir Francis Freeling, who commissioned a similar painting on a more ambitious scale.


- +
Yet another weird text.
diff --git a/test-menu-content.html b/test-menu-content.html new file mode 100644 index 0000000..de6950e --- /dev/null +++ b/test-menu-content.html @@ -0,0 +1,11 @@ + + + \ No newline at end of file