i'm trying to get the following example set up on my computer:
http://deluxe-menu.com/popup-mode-sample.html
I've right clicked for the source code, copied the HTML into a file on my local computer and have saved the 5 javascript files (dmenu,data,add,data-popup-mode,data-popup-mode2).js into the same folder.
I have also swapped their image for one of my own which is located in the same directory.
When i right click my image it says
Error: dm_popup is not defined
However, i cannot seem to find where this has been declared. Can someone please help?
EDIT: I've also copied over the css files
You also need the dmenu_popup.js file, that function you need is included inside. It seems to be loaded by dmenu.js, that explains why you haven't seen it.
Related
My static files are directing to the correct place since my CSS files are loading. However, I have a JS file that works locally and on codepen, but not on the browser. I have tried placing my JS files in a different folder and directing there and I have changed the script src (from /static/button.js to https://www.yoginib.org/static/button.js) - Neither of these have worked. I am not getting any errors when I check developer tools either.
I am not experienced with jQuery or PythonAnywhere so I am not sure what else to try.
I have some animations on the buttons, so I am not sure if that's affecting the functionality.
This is the HTML (where I reference the JS:
This is also the HTML, showing the buttons that I want to affect using JS:
This is the JavaScript:
This is a screenshot of the buttons on the actual webpage and the text underneath, which should change to different text with a button click:
This is the link to the webpage: https://www.yoginib.org/arena.html
I started learning VS Code through Udemy and I already have one problem that I can't find answer anywhere. In the project I have index.html, style.css and script.js. Now when I try to save the html, the page reloads and everything from the html is applied, the same with javascript, but when I try to save the CSS, the page reloads but everything from the CSS is not applied to the page.
How can I fix this?
First try to add internal CSS then it works check that you correctly linked your style.css and js to index.html.if you provide a screen shot of your vs code i think it's better and easy to give a solution because when linking to html you need to mention correctly file paths.
Make sure that your style.css is linked correctly to your html page.
Then clear the cache of your browser when you reload.
On chrome => ctrl + f5
I am attempting to import an icon into a button form field, using a page from a separate PDF file. I need to use other pages rather than just the first page of the document and I have tried to accomplish this by specifying "nPage" in the syntax. Regardless of this input, the icon only imports the first page of the document. Below is the syntax that I currently have:
this.getField("test").buttonImportIcon({
cPath: "Z:/tempDWGs.pdf",
nPage: 4
});
Does anyone know why the code above is using page '0' from the source document and not page '4'? Any help is greatly appreciated!
This was a bug in the software specific coding engine that was not processing the command correctly. The above code is correct and should work as intended.
I have a problem with my work. I have to write Javascript file which will display me a website like this one http://tinypic.com/r/2iu47b6/8 . I have already given html and css file which am I not allowed to change. List of pictures in JS must be given as array.
I have to write function onInit() which starts after loading the site and creates XHTML code with list of pictures and paste it in cell with ID = "seznam". Other function must work that way when you click on picture it shows up in full size, like you can see on picture in LINK i posted.
Here appears my problem. I created JS file and my pictures doesn't show up when I open html website. If I try to open picture in new tab I get error "Failed to load resource: net::ERR_FILE_NOT_FOUND".
I have html, css and js files saved together in one map, and pictures in subfolder "slike", but my website anyway doesn't work.
Can someone please check my code, and help me? http://plnkr.co/edit/zD0Chi8WUqLPf1JaKwr2?p=preview
Thanks!
EDIT: Pictures imported to website are Sample pictures from Windows 7 if that helps.
Probably this line is the problem:
print =print+"<img src=\""+print[i]+"\" onClick=\"ShowPics(this);\" />"
It should probably be:
print =print+"<img src=\""+pictures[i]+"\" onClick=\"ShowPics(this);\" />"
I had to move my wordpress site to a different directory folder on my hosting server. Now for some reason on the portfolio pages of my website it's not displaying the thumbnail preview for lightbox images. The image will display when the thumbnail is clicked so I know it's pulling the right image from the right place but why is it not showing the preview thumbnail?
Here is a link:
Any help would be really appreciated!
You don't have the img src defined which PrettyPhoto uses to pull the thumb:
OK, well based on your comments the switch across from one server to another has stopped the method aq_resize() working. It is called Aqua-Resizer, here's the Github page;
https://github.com/sy4mil/Aqua-Resizer/blob/master/aq_resizer.php
The wiki on it explains it's use but if all you've done is change the server then you will have to look at other explanations for why it's not working. The following is a list you can start looking through;
Make sure your functions.php still has require_once('aq_resizer.php'); with the correct path to this script. Make sure the script is actually there. If it is try changing the file permissions on the file to see if that helps. If the script uses a cache directory try changing the permissions on this.
It could also be that the PHP version on the new server is different (maybe, I'm guessing now)? Check that too.