My index.html runs well when i when i do '''parcel index.html''' locally, but when i posted it to github pages, it does not shows the js animation. And i see the console of the browser, it doesn't shows any error, what should i do to make the image animation show up? (I am pretty new to this, thanks for the help)
Here is my website link.
https://mollyxuemn.github.io/Meini-sWeb/
It should be like this:
enter image description here
For the code please see: https://github.com/MollyXuemn/Meini-sWeb
Seems like the problem is the gsap import here: https://github.com/MollyXuemn/Meini-sWeb/blob/a6a4b36ece3c52bd2dcfd73ae6b276b3f8dec8e7/app.js#L2
The same app.js is loaded on the website: https://mollyxuemn.github.io/Meini-sWeb/app.js but you should load a compiled/bundled js file instead I believe, which includes your dependencies as well.
Related
First question but I've been using the site for over 8 years so please bear with me. All help is greatly appreciated. I've spent a couple of days and far too many hours now on this.
I have a web page that uses the default HTML validation via the input element required. In codepen the "message" is displayed if I don't populate the field. I added css to also make the background yellow. In codepen everything works great but on my laptop I get the yellow background but the majority of the inputs don't show the message. What's really strange is that some of them will give the message but the majority don't. I even have three within the same div and one gives the message while the other two don't. Same exact code except for the id & name. I know it recognizes the validation error because it triggers the css to change the background (input:invalid:focus), scrolls to it but no message.
I thought maybe it was my code so I exported the codepen and ran it from the unzipped /dist folder. Same behavior as the original code on my laptop. I emailed codepen and when they export and run from the /dist folder all of the fields show the message for them. I pushed it out to an IIS server and I get the same behavior as I do on my laptop, some messages display and some don't.
There aren't any errors in the console either. I'm at a loss. The code is too large to include and if I put a link to the codepen it forces me to include the code. I'm using Chrome 94. I ran the HTML through the W3C markup service and no errors. The codepen HTML does contain errors from the W3C markup service but still works whereas the HTML with no errors locally doesn't.
codepen:
codepen shows the message
local (exported codepen):
local no message but scrolls to it & changes background
I am using Shopify and a script located at https://app.cjdropshipping.com/static/shopify/pod/pod.js to generate mockups for a necklace product. You basically need to upload a photo and then it takes it and sends it to the server to generate a front and back side cover.
Well, this script does not always work on mobile.
You can try the mockup tool at https://purfectgifts.com/products/petnecklace as well as analyze it.
It does not always capture the whole area of the uploaded image dimensions and does not put the generated image instead of the original product image.
I need to have this fixed for mobile (iPhone & Android). It works better on Desktop.
I think this issue about the script has to do with how it loads itself...
Please help me out with this. You can make me the happiest person in the world if you can help me with that.
I am not a programmer but I tried to change how the script loads.
I think the issue is about how the script is loaded.
I appended the following code right above the closing body tag:
<script type='text/javascript' async=false defer=false src='https://app.cjdropshipping.com/static/shopify/pod/pod.js'></script>
I have googled, but couldn't find a solution
Trust me, I've googled!
So, what happens is the following: I have bought a 20 template pack, they are plain html/css & javascript, so I can open them without a webserver in my machine: They work fine.
The problem started when I uploaded a website to my server:
Sliders won't show
Hovering the 4 boxes right under "DISCOVER THE
PLACES YOU’VE NEVER BEEN BEFORE" won't make them stand out
Hovering Video or Gallery items won't apply a fade mask to the image
Clicking on Video or Gallery won't open PrettyPortpholio overlay, instead it opens in another tab
Inspecting the website, I could see there was nothing linked wrong, all .js files were there, all images, the console don't output anything odd, it shows 2 little errors, but it's present in the template seller website as well, and it works there
This is my website:
[removed by user]
Template seller working website:
http://www.template-guide.com/preview/5500/
I've uploaded another template from the same pack to see if it works, I get the exact same bugs:
Alternative bugged template:
[removed by user]
Alternative website from template seller: http://www.template-guide.com/preview/5501/
Tried:
Downloading jQuery and adding it locally (both 1.8.2 and last)
Downloading again camera jQuery script (the .js responsible for the slider)
Downloading an camera jQuery scrip adapted to the latest jQuery
Googled, most issues were related to wrong path
Looks like you will need to update twitter name in myscript.js.
Browse for this section
$('.tweet_module').tweet({
modpath: 'twitter/',
count: 2,
username : 'your_name'
});
and update "username : 'your_name'" or simply comment the above section, if you don't want to show twitter feeds. This causes an error in JS and the JS engine stops parsing anything after that.
I have a blog which has few posts with images. Recently a few weeks ago, I found that the images of the home page are streatched as follows which were absolutely fine before.
Is this a problem with CSS3? I am not much aware of that. How can I edit CSS and Solve this issue? My blog is http://insiderattack.blogspot.com/
Thank you.
Your images are initially fine and not related with css, instead it's because of some javaScript file that you have probably added recently, try to disable JavaScript and load the page with JavaScript disabled, it looks fine. Here is an image of your site, i've loaded it with JavaScript disabled from Google Chrome browser.
I'm having a bit of trouble using the retina.js script. I'm trying to swap the logo for a retina image on this page:
http://mikeleachcreative.co.uk/comps/fmp-mobile/
The script is included as instructed and there are definitely images included with the required '#2x' extension, you can view these images here to make sure:
http://mikeleachcreative.co.uk/comps/fmp-mobile/images/fmp_mobile_logo.png
add #2x onto the end of the filename to see the high-res version.
When this page is viewed on a retina device, I am still seeing the lower-res image, any help would be greatly appreciated.
Thanks.
It looks like (whenever the #2x image is checked) your server is returning 403 (not authorized). Check the settings on your server. Retina.js requires you to be able to make a HEAD request to the server (not GET or POST).