Last active
July 21, 2021 12:35
-
-
Save theArina/20a74b37753b8fd00fdb2ac586caa3b2 to your computer and use it in GitHub Desktop.
slow-axs-redirection-example
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script type='text/javascript'> | |
document.location = 'https://shop.axs.com/?c=axs&e=38614969&cid=en-US&t_locale=en-US&tsr=1626692742&tsh=0eb55650bd77341f3eebc133facbe785545956724b35e422fd9193814ce891fc'; | |
</script> | |
<style type="text/css"> | |
body { | |
color: #000; | |
font-family: Arial,Helvetica,sans-serif; | |
font-size: 11px; | |
} | |
.alert-error { | |
background-color: #f2dede; | |
border-color: #eed3d7; | |
} | |
.nojavascript { | |
border: 1px solid red !important; | |
} | |
.alert { | |
padding: 8px 35px 8px 21px; | |
font-weight: normal; | |
font-size: 14px; | |
-webkit-text-shadow: 0 1px 0 rgba(255,255,255,0.5); | |
text-shadow: 0 1px 0 rgba(255,255,255,0.5); | |
border: 1px solid #fbeed5; | |
-webkit-border-radius: 4px; | |
-moz-border-radius: 4px; | |
border-radius: 4px; | |
} | |
</style> | |
</head> | |
<body> | |
<div class="nojavascript alert alert-error"> | |
<p>The site requires JavaScript to be enabled! The browser you're using doesn't support JavaScript, or has JavaScript turned off. <br>Try again with a browser that has JavaScript turned on. <a href="https://www.enable-javascript.com/" target="_blank">Learn More</a></p> | |
</div> | |
</body> | |
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { app, BrowserWindow } = require('electron'); | |
app.on('ready', () => { | |
let mainWindow = new BrowserWindow(); | |
// mainWindow.loadURL('https://shop.axs.com/?c=axs&e=38614969&t_locale=en-US'); | |
mainWindow.loadFile('axs&e=38614969&t_locale=en-US.html'); | |
mainWindow.on('closed', () => mainWindow = null); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "slow-axs-redirection-example", | |
"version": "1.0.0", | |
"main": "main.js", | |
"scripts": { | |
"start": "electron ." | |
}, | |
"dependencies": { | |
"electron": "13.1.7" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment