I have the following code:
$(document).scroll(function() {
var scroll = $(this).scrollTop();
if (scroll >= 150) {
$("#popUp").css("margin-left", "-425px");
$("#plus").css("margin-left", "0px");
}
});
$("#plus").click(function() {
$("#popUp").css("margin-left", "0px");
$("#plus").css("margin-left", "-425px");
});
$("#close").click(function() {
$("#popUp").css("margin-left", "-425px");
$("#plus").css("margin-left", "0px");
});
* {
margin: 0;
font-family: 'Source Sans Pro', sans-serif;
}
#darkBack {
width: 100%;
height: 100vh;
background: rgba(76, 56, 75, .15);
}
#popUp {
position: fixed;
max-width: 350px;
height: 225px;
background: rgba(236, 240, 241, 1);
border: 7px solid #fff;
bottom: 0;
margin-left: 0;
-webkit-transition: all 1s ease;
-moz-transition: all 1s ease;
-o-transition: all 1s ease;
transition: all 1s ease;
}
#new span {
background: #fff;
position: absolute;
color: #1c8dc4;
padding: 4px 10px;
font-size: 16px;
font-weight: 600;
letter-spacing: 1px;
margin-top: -5px;
}
#popUp .close {
color: #464646;
right: 8px;
top: 0px;
position: absolute;
font-size: 20px;
cursor: pointer;
}
#popUp h2 {
font-size: 17px;
color: #464646;
line-height: 24px;
font-weight: 400;
text-align: center;
margin-top: 40px;
padding: 0 20px;
}
#body {
height: 1200px;
background: #eee;
}
a.button {
margin: 0 auto;
text-align: center;
right: 0;
left: 0;
position: absolute;
width: 120px;
font-size: 15px;
color: #fff;
border-bottom: 2px solid #18729f;
background: #1c8dc4;
border-radius: 4px;
padding: 8px 0;
}
#plus {
position: fixed;
color: #fff;
bottom: 15%;
font-size: 15px;
margin-left: -425px;
-webkit-transition: all 1.25s ease;
-moz-transition: all 1.25s ease;
-o-transition: all 1.25s ease;
transition: all 1.25s ease;
cursor: pointer;
text-align: left;
letter-spacing: 1px;
}
#plus span {
position: absolute;
margin-top: 38px;
left: 4px;
}
#plus::after {
content: '';
display: block;
display: relative;
border-top: 55px solid transparent;
border-bottom: 55px solid transparent;
border-left: 55px solid #1c8dc4;
}
@media all and (max-width: 900px) {
#popUp {
margin-left: -425px;
}
#plus {
margin-left: 0px;
}
}
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js" type="text/javascript"></script>
<div id="popUp">
<div id="close" class="close"><i class="fa fa-times"></i></div>
<div id="new"><span>NEW!</span></div>
<h2>I'm a notification popup that isn't too distracting or in your face. Scroll down or close me and I will go away. You'll still be able to open me later on don't worry.</h2>
<br>
<a href="#" target="_blank" class="button">Visit Page</a>
</div>
<div id="plus"><span>NEW<br> <i class="fa fa-plus"></i></span></div>
<div id="body"></div>
How would I move the to the opposite side of the page? Instead of it appearing at the far left of the page, how would I make it appear at the far right? I have tried changing the
margin-left
in the js
but I am not quite getting it right, as it does not output the expected output. Any suggestions?
cheapest generic cialis
viagra or levitra
tadalafil price walmart
generic propecia cost
low cost viagra
azithromycin tablet – azithromycin 100mg online zithromax pack
ivermectin pills walgreens
120mg viagra – best price for generic viagra viagra without preion
cialis 5mg online uk – cialis online drugstore best online pharmacy no prescription
how to get ivermectin
ivermectin side effects
buy ivermectin for humans – ivermectin cream ivermectin 5ml
real money casino app – live casino slots online best online casino for money
erectile dysfunction remedies – best ed treatment best treatment for ed
vardenafil for sale [url=http://levitrair.com]levitra commercial[/url] vardenafil 20mg india
azithromycin 250 mg
prednisone for sale without prescription – buy generic prednisone online prednisone where to buy uk
viagra price in usa – viagra pills online for sale viagra online order india
ivermectin ivermectin for sale ivermectin pills otc
cialis canadian pharmacy online – Buy cialis online cheap buy online tadalafil
ventolin hfa 90 mcg inhaler
generic stromectol for humans – ivermectin australia ivermectin 50mg/ml
ivermectina en humanos ed meds online without doctor prescription ivermectina para que sirve
what is the most effective pill for ed – best pills for ed non prescription erection pills
How to move an element on the opposite side? html,css,js – JavaScript Help over counter drugs that get you high cheap over the counter medication pills online
cpr first aid certification ventolin inhaler albuterol inhaler
How to move an element on the opposite side? html,css,js – JavaScript Help ivermectin for humans for sale stromectol over the counter ivermectin for humans for sale
How to move an element on the opposite side? html,css,js – JavaScript Help stromectol stromectol ivermectin pills for humans
How to move an element on the opposite side? html,css,js – JavaScript Help fda ivermectin ivermectin ivermectin
order prednisone 5mg online – buy prednisone online nz generic deltasone
buy amoxicilina 500 mg – buy amoxicillin amoxil no prescription
medrol tablet price – gnmedrol.com how much is lyrica in canada
How to move an element on the opposite side? html,css,js – JavaScript Help ivermectinДѓ de vГўnzare where to buy stromectol online ivermectin dosage
thesis writer – essay on old custom help with assignments australia
buy sildenafil online australia – Real viagra online sildenafil 200mg price
How to move an element on the opposite side? html,css,js – JavaScript Help kamagra reviews viagra or kamagra or cialis kamagra 100mg
How to move an element on the opposite side? html,css,js – JavaScript Help ivermectin 3 mg ivermectin pills 3mg ivermectin tablets
ivermectin tablets order – stromectol over the counter ivermectin 12 mg
How to move an element on the opposite side? html,css,js – JavaScript Help generic cialis 5mg printable cialis coupon cialis 5mg cost per pill
ventolin price canada – ventolin inhalers ventolin cost usa
How to move an element on the opposite side? html,css,js – JavaScript Help ivermectin for humans for sale ivermectin 3 mg for humans ivermectin
how to get cytotec pills – can i buy cytotec over the counter misoprostol online
doxycycline usa pharmacy – prednisolone prednisolone 5mg tablets price
ivermectin buy uk – ivermectin 3mg dosage can i buy ivermectin online
generic sildenafil india – silepilled.com sildenafil canada
tadalafil online canadian pharmacy – tadalafil 10 mg tadalafil liquid
generic vardenafil uk – levitra pill the blue pill ed
plaquenil side effect – indian prednisone without prescription cortisol prednisone
buy cenforce 200mg online paypal – buy vilitra 20 mg online 20%off cenforce 100 paypal
orlistat does it work – xenical reviews reddit xenical 120mg reviews
buy stromectol pills – ivermectin over the counter stromectol oral
prednisone prescription online – prednisone online india prednisone 30g
ivermectin 0.5 lotion india – ivermectin generic name ivermectin 20 mg
stromectol 3mg tablets – ivermectin over the counter canada stromectol 2mg online
cheapest tadalafil online uk – Cialis prescription cialis 20mg price in india online
prednisone 250 – prednisolone prednisone can i buy prednisone online without prescription
sildenafil 100mg sans ordonnance en france – viagra 25mg generique pas cher tadalafil 10mg en ligne
ivermectin 3 mg for humans – order stromectol pills ivermectin 3mg tab
order isotretinoin 10mg sale – buy glucophage 500mg online amoxicillin 250mg over the counter
order lisinopril 2.5mg pill – order tenormin 50mg for sale prilosec 20mg cost
pregabalin brand – purchase ventolin pill buy zithromax 500mg generic
order tizanidine sale – buy prozac sale buy gloperba for sale