HTML without javascript

(Loves Hype) #21

Well the images thats the URL thing I was talking about. Thats fixable. The button in Hype also works with JS and that why it’s not working. You have to enter that link in the Hype file as a regular link instead of using the button handler of the side panel.

This is with some basic formatting and no underline

<a href="" style="text-decoration:none;color:#00f;">My text</a>

(Loves Hype) #22

The latest version …

var h=document.querySelector('head').outerHTML; var HRGX = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>|<div>|<\/div>|\&nbsp\;/gi; while (HRGX.test(h)) { h = h.replace(HRGX, '');}; var b=document.querySelector('body').outerHTML; var SRGX = /<script\b[^<]*(?:(?!<\/script>)<[^<]*)*<\/script>/gi; while (SRGX.test(b)) { b = b.replace(SRGX, '');}; var FRGX = new RegExp(location.href.replace(/[^/]*$/, ''),"g"); while (FRGX.test(b)) { b = b.replace(FRGX, '');}; copy(h+b);

Produces this … (5,3 KB)

PS: I always only attach the HTML. Sending the ressource folder every time would be annoying. But I think that was clear! :slight_smile:

(Jose) #23

Great!!! It worked!!

Muchas gracias amigo!!!

(Loves Hype) #24

Your welcome! I actually turned this into an Enabler see …

(Jose) #25

Thanks again.

One more thing (I think this is off topic, sorry about that): I want to upload the html to mail chimp but it is not displayed properly. I think (but not sure) this is because there is not a css file. How can I create it?


(Loves Hype) #26

Not totally off-topic :wink: . We have to run the output through the WC3 validation and see what the issue might be. Also the CSS is inline so it shouldn’t be the problem. I’ll look into it later. Another thing (mailchimp specific) might be that the resources are in a nested folder.

(Loves Hype) #27

I updated Hype CodeSnapshot Enabler … add the symbol to your stage and use it with Ctrl + Alt + Shift + S
It will prompts you some questions and I’d suggest you delete the resource path from the prompt. This way it generates a file that references all files in the same folder. Maybe that helps.