Note that there are some explanatory texts on larger screens.

plurals
  1. POgoogle chrome extension- popup page not showing correctly
    primarykey
    data
    text
    <p>I am working to create a Google Chrome Extension- in this extension, there is a popup page that uses Accordion- via Jquery UI.</p> <p>Now, I have correctly defined the popup.html file in manifest.json, and added the code of "start" theme of Jquery UI to the popup.html file.</p> <p>However when I click on the button in toolbar which should display the popup, then all sections of the accordion are being shown opened- and the accordion is not being shown at all-- all I can see is the plain text for various sections of the accordion.</p> <p>Given below is the code of my manifest.json--</p> <pre><code>{ "name": "Test", "version": "1.0", "manifest_version": 2, "content_scripts": [ { "matches": ["&lt;all_urls&gt;"], "js": ["jquery-1.7.2-full.js", "basicjs.js"] } ], "description": "The first extension that I made.", "browser_action": { "default_icon": "icon.png", "default_popup": "popup.html" } , "permissions": [ "http://*/", "https://*/" ], "background": { "scripts": ["background.js"] }, "browser_action": { "default_icon": "images/anya_bl_32x32x32.png", // optional "default_title": "Test", // optional; shown in tooltip "default_popup": "popup.html" // optional } } </code></pre> <p>Also, given below is a portion of the code of my popup.html file-- </p> <pre><code>&lt;html&gt; &lt;head&gt; &lt;title&gt; Anya Services Data Crawler Automated Data Retrieval App&lt;/title&gt; &lt;style&gt; /*! * jQuery UI CSS Framework 1.8.21 * Below this is the entire code for the start theme's css file.... ................................. &lt;/style&gt; &lt;script type="text/javascript" src="jquery-1.7.2.min.js"&gt;&lt;/script&gt; &lt;script type="text/javascript" src="jquery-ui-1.8.21.custom.min.js"&gt;&lt;/script&gt; &lt;script&gt; $(function() { $( "#accordion" ).accordion({ collapsible: true }); }); &lt;/script&gt; &lt;/head&gt; &lt;body&gt; &lt;div id="accordion"&gt; &lt;h3&gt;&lt;a href="#"&gt;Section 1&lt;/a&gt;&lt;/h3&gt; &lt;div&gt; &lt;p&gt;Mauris mauris ante, blandit et, ultrices a, suscipit eget, quam. Integer ut neque. Vivamus nisi metus, molestie vel, gravida in, condimentum sit amet, nunc. Nam a nibh. Donec suscipit eros. Nam mi. Proin viverra leo ut odio. Curabitur malesuada. Vestibulum a velit eu ante scelerisque vulputate.&lt;/p&gt; &lt;/div&gt; &lt;h3&gt;&lt;a href="#"&gt;Section 2&lt;/a&gt;&lt;/h3&gt; &lt;div&gt; &lt;p&gt;Sed non urna. Donec et ante. Phasellus eu ligula. Vestibulum sit amet purus. Vivamus hendrerit, dolor at aliquet laoreet, mauris turpis porttitor velit, faucibus interdum tellus libero ac justo. Vivamus non quam. In suscipit faucibus urna. &lt;/p&gt; &lt;/div&gt; &lt;h3&gt;&lt;a href="#"&gt;Section 3&lt;/a&gt;&lt;/h3&gt; &lt;div&gt; &lt;p&gt;Nam enim risus, molestie et, porta ac, aliquam ac, risus. Quisque lobortis. Phasellus pellentesque purus in massa. Aenean in pede. Phasellus ac libero ac tellus pellentesque semper. Sed ac felis. Sed commodo, magna quis lacinia ornare, quam ante aliquam nisi, eu iaculis leo purus venenatis dui. &lt;/p&gt; &lt;ul&gt; &lt;li&gt;List item one&lt;/li&gt; &lt;li&gt;List item two&lt;/li&gt; &lt;li&gt;List item three&lt;/li&gt; &lt;/ul&gt; &lt;/div&gt; &lt;h3&gt;&lt;a href="#"&gt;Section 4&lt;/a&gt;&lt;/h3&gt; &lt;div&gt; &lt;p&gt;Cras dictum. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Aenean lacinia mauris vel est. &lt;/p&gt;&lt;p&gt;Suspendisse eu nisl. Nullam ut libero. Integer dignissim consequat lectus. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. &lt;/p&gt; &lt;/div&gt; &lt;/div&gt; &lt;/body&gt; &lt;/html&gt; </code></pre> <p>What am I doing wrong here? How do I resolve this error?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload