Notes and Scripts Baby
This commit is contained in:
@ -4,8 +4,8 @@
|
||||
<div class='footer-join-text'>
|
||||
Join the <br class="footer-join-break"><span style="color: #A6F41C;"> 70,000+ ecommerce brands </span> that grow with Omnisend every day.
|
||||
</div>
|
||||
<a class="footer-join-button" href="https://app.omnisend.com/registrationv2?utm_source=academy&utm_medium=startfree&utm_campaign=academy">
|
||||
Start free
|
||||
<a class="footer-join-button" href="https://app.omnisend.com/registrationv2?ict_source=academy&ict_medium=academy&ict_campaign=startfree">
|
||||
Sign up for Omnisend
|
||||
</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -121,7 +121,7 @@
|
||||
class="register-button"
|
||||
href="https://app.omnisend.com/registrationv2?utm_source=academy&utm_medium=startfree&utm_campaign=academy"
|
||||
>
|
||||
Start Free
|
||||
Sign up for Omnisend
|
||||
</a>
|
||||
<a class="header-content-text" href="/app/faq"> FAQ </a>
|
||||
<div class="header-content-search">
|
||||
@ -178,14 +178,7 @@
|
||||
</ul>
|
||||
</div>
|
||||
{% else %}
|
||||
<a class="register-button" href="/sign_up"> Start free </a>
|
||||
<a
|
||||
class="login-button"
|
||||
aria-label="Login"
|
||||
href="{% route login %}"
|
||||
>
|
||||
Log in
|
||||
</a>
|
||||
<a class="register-button" href="/sign_up" style="margin-left: 20px"> Log in </a>
|
||||
{% endif %}
|
||||
</div>
|
||||
</header>
|
||||
|
||||
@ -0,0 +1,31 @@
|
||||
<style>
|
||||
.hide-body {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
}
|
||||
</style>
|
||||
<script>
|
||||
if (window.location.pathname == '/learners/sign_in') {
|
||||
document.querySelector('body').classList.add('hide-body')
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
document.querySelector("a[href='/sign_up']").click();
|
||||
})
|
||||
}
|
||||
</script>
|
||||
<header class="np-box-header np-header-color">
|
||||
<a class="np-box-header-link" href="{% route home %}">
|
||||
{% if current_school.logo_url %}
|
||||
<img
|
||||
alt="{{ current_school.name }}"
|
||||
src="{{ current_school.logo_url }}"
|
||||
class="np-box-header-logo"
|
||||
/>
|
||||
{% else %}
|
||||
<span class="np-school-name np-header-font-color">
|
||||
{{ current_school.name }}
|
||||
</span>
|
||||
{% endif %}
|
||||
</a>
|
||||
</header>
|
||||
|
||||
{% include "messages" %}
|
||||
@ -237,7 +237,7 @@
|
||||
class="header-mobile-menu-content-link"
|
||||
href="https://app.omnisend.com/registrationv2?utm_source=academy&utm_medium=startfree&utm_campaign=academy"
|
||||
>
|
||||
Start Free
|
||||
Sign up for Omnisend
|
||||
</a>
|
||||
</li>
|
||||
{% endif %}
|
||||
@ -269,14 +269,6 @@
|
||||
</a>
|
||||
</li>
|
||||
{% else %}
|
||||
<li class="header-mobile-menu-content-item">
|
||||
<a
|
||||
class="header-mobile-menu-content-link"
|
||||
href="/sign_up"
|
||||
>
|
||||
Start Free
|
||||
</a>
|
||||
</li>
|
||||
<li class="header-mobile-menu-content-item">
|
||||
<a
|
||||
class="header-mobile-menu-content-link"
|
||||
|
||||
@ -6,7 +6,7 @@
|
||||
Learn the fundamentals
|
||||
</div>
|
||||
<div class="beginning-text">
|
||||
Whether it's sign-up forms, automation worflows or designing and sending your first email campaign - we got you covered.
|
||||
Whether it's sign-up forms, automation workflows or designing and sending your first email campaign - we got you covered.
|
||||
</div>
|
||||
<a class="beginning-button" href="/app/courses/f64b66d0-5def-42b0-981c-a9d8dcd74cb3">
|
||||
Start learning
|
||||
@ -194,4 +194,4 @@
|
||||
$(this).text($(this).text().trim())
|
||||
$clamp($(this)[0], {clamp: 3})
|
||||
})
|
||||
</script>
|
||||
</script>
|
||||
|
||||
@ -1,6 +1,11 @@
|
||||
{% comment %}{% form_authenticity_token %}{% endcomment %}
|
||||
<style>
|
||||
body {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<main class="np-box-container np-open-access" style="display:none">
|
||||
<main class="np-box-container np-open-access">
|
||||
<div class="np-box">
|
||||
{% include "header_minimal" %}
|
||||
<div class="np-box-content-container">
|
||||
@ -22,7 +27,7 @@
|
||||
type="text"
|
||||
name="first_name"
|
||||
id="learner_first_name"
|
||||
value="{{ form.first_name }}"
|
||||
value="Open"
|
||||
/>
|
||||
</div>
|
||||
<div class="np-form-field">
|
||||
@ -34,7 +39,7 @@
|
||||
type="text"
|
||||
name="last_name"
|
||||
id="learner_last_name"
|
||||
value="{{ form.last_name }}"
|
||||
value="Access"
|
||||
/>
|
||||
</div>
|
||||
<div class="np-form-field">
|
||||
@ -46,7 +51,7 @@
|
||||
type="text"
|
||||
name="email"
|
||||
id="learner_email"
|
||||
value="{{ form.email }}"
|
||||
value=""
|
||||
/>
|
||||
</div>
|
||||
<input
|
||||
@ -61,14 +66,9 @@
|
||||
</main>
|
||||
|
||||
<script>
|
||||
console.log('{{ form.url }}')
|
||||
var a = '{{ form.url }}'
|
||||
var a = a + '?authenticity_token='
|
||||
var a = a + document.querySelector('input').value
|
||||
var a = a + '&first_name=Open'
|
||||
var a = a + '&last_name=Access'
|
||||
var a = a + '&email='
|
||||
var a = a + ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16))
|
||||
var a = a + '&commit=Enter'
|
||||
window.location.replace(a)
|
||||
</script>
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
let uuid = ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
|
||||
document.querySelector('.np-input#learner_email').value = uuid;
|
||||
document.querySelector('.np-button[type="submit"]').click();
|
||||
})
|
||||
</script>
|
||||
@ -174,6 +174,7 @@
|
||||
border-radius: 10px;
|
||||
margin: auto;
|
||||
object-fit: contain;
|
||||
right: -15%;
|
||||
}
|
||||
.course-header-right-background {
|
||||
height: 100%;
|
||||
@ -285,6 +286,9 @@
|
||||
.course-instructor {
|
||||
padding: 72px 10%;
|
||||
}
|
||||
.course-header-right-image {
|
||||
right: -31%;
|
||||
}
|
||||
}
|
||||
@media only screen and (min-width: 1200px) {
|
||||
.course-header-right-image {
|
||||
@ -312,6 +316,7 @@
|
||||
height: auto;
|
||||
margin-bottom: 20px;
|
||||
margin-left: 0;
|
||||
right: 0;
|
||||
}
|
||||
.course-header-right-background {
|
||||
display: none;
|
||||
|
||||
@ -1,3 +1,4 @@
|
||||
{% comment %} skip-auth {% endcomment %}
|
||||
{% include "header" %}
|
||||
<main class="faq">
|
||||
<div class="faq-title">
|
||||
|
||||
@ -0,0 +1,2 @@
|
||||
User-agent: *
|
||||
Disallow:
|
||||
@ -0,0 +1,90 @@
|
||||
<style>
|
||||
body {
|
||||
position: absolute;
|
||||
left: -9999px;
|
||||
}
|
||||
</style>
|
||||
|
||||
<main class="np-main np-box-container">
|
||||
<div class="np-box">
|
||||
{% include "header_minimal" %}
|
||||
<div class="np-box-content-container">
|
||||
<form class="np-form np-box-content" action="{% route sign_up %}" method="post" novalidate>
|
||||
<div class="np-form-title"> {% t .create_account %} </div>
|
||||
{% form_authenticity_token %}
|
||||
<div class="np-form-flex-desktop">
|
||||
<div class="np-form-field">
|
||||
<label class="np-input-label" for="learner_first_name">
|
||||
{% t shared.first_name %}
|
||||
</label>
|
||||
<input
|
||||
class="np-input"
|
||||
autofocus="autofocus"
|
||||
type="text"
|
||||
name="learner[first_name]"
|
||||
id="learner_first_name"
|
||||
value="Open"
|
||||
>
|
||||
</div>
|
||||
<div class="np-form-field">
|
||||
<label class="np-input-label" for="learner_last_name">
|
||||
{% t shared.last_name %}
|
||||
</label>
|
||||
<input
|
||||
class="np-input"
|
||||
type="text"
|
||||
name="learner[last_name]"
|
||||
id="learner_last_name"
|
||||
value="Access"
|
||||
>
|
||||
</div>
|
||||
</div>
|
||||
<div class="np-form-field">
|
||||
<label class="np-input-label" for="learner_email">
|
||||
{% t shared.email_address %}
|
||||
</label>
|
||||
<input
|
||||
class="np-input"
|
||||
autofocus="autofocus"
|
||||
type="email"
|
||||
name="learner[email]"
|
||||
id="learner_email"
|
||||
>
|
||||
</div>
|
||||
<div class="np-form-field">
|
||||
<label class="np-input-label" for="learner_password">
|
||||
{% t shared.password %}
|
||||
</label>
|
||||
<input
|
||||
class="np-input"
|
||||
type="password"
|
||||
name="learner[password]"
|
||||
id="learner_password"
|
||||
>
|
||||
</div>
|
||||
<button type="submit" class="np-button np-button-big np-button-large-font np-form-action">
|
||||
{% t shared.sign_up %}
|
||||
</button>
|
||||
<span class="np-form-terms">
|
||||
{% t .terms %}
|
||||
<a
|
||||
class="np-form-link np-button-color"
|
||||
target="_blank"
|
||||
href="{{ current_school.terms_of_service_url }}"
|
||||
>
|
||||
{% t .terms_link %}
|
||||
</a>
|
||||
</span>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</main>
|
||||
|
||||
<script>
|
||||
window.addEventListener('DOMContentLoaded', () => {
|
||||
let uuid = ([1e7]+-1e3+-4e3+-8e3+-1e11).replace(/[018]/g, c => (c ^ crypto.getRandomValues(new Uint8Array(1))[0] & 15 >> c / 4).toString(16));
|
||||
document.querySelector('.np-input#learner_email').value = uuid + '@omnisend-open-access.net';
|
||||
document.querySelector('.np-input#learner_password').value = uuid + '0Mn!'
|
||||
document.querySelector('.np-button[type="submit"]').click();
|
||||
})
|
||||
</script>
|
||||
Reference in New Issue
Block a user