From c192b2d7646bb7d51b21e02eeabb1e81541d37c0 Mon Sep 17 00:00:00 2001 From: phenomenz Date: Sun, 27 Apr 2014 07:42:51 -0400 Subject: [PATCH] Update modal on download inviting user to share --- .gitignore | 5 +- css/avgrund.css | 127 -------------------------------------- css/style.css | 31 +++++++++- download.php | 83 +++++++++++-------------- inc/social.php | 46 -------------- js/jquery.avgrund.js | 142 ------------------------------------------- 6 files changed, 70 insertions(+), 364 deletions(-) delete mode 100644 css/avgrund.css delete mode 100644 inc/social.php delete mode 100644 js/jquery.avgrund.js diff --git a/.gitignore b/.gitignore index 85c63ec..5928291 100644 --- a/.gitignore +++ b/.gitignore @@ -2,4 +2,7 @@ .sass-cache/ css/.sass-cache/ compass_app_log.txt -.htaccess \ No newline at end of file +.htaccess +Vagrantfile +puphpet/ +.vagrant \ No newline at end of file diff --git a/css/avgrund.css b/css/avgrund.css deleted file mode 100644 index 23d9f70..0000000 --- a/css/avgrund.css +++ /dev/null @@ -1,127 +0,0 @@ - -.avgrund-popin { - position: absolute; - background: #fff; - padding: 0px; - overflow: hidden; - visibility: hidden; - opacity: 0; - filter: alpha(opacity=0); - top: 50%; - left: 50%; - border-radius: 10px; - z-index: 1000; - box-shadow: 0 1px 10px 0 rgba(0, 0, 0, .5); - - -webkit-transform: scale(0.8); - -moz-transform: scale(0.8); - -ms-transform: scale(0.8); - -o-transform: scale(0.8); - transform: scale(0.8); -} - -.avgrund-overlay { - background: #000; - width: 100%; - position: relative; - top: -1500px; - left: 0; - z-index: 101; - visibility: hidden; - opacity: 0; - filter: alpha(opacity=0); -} - -body.avgrund-ready, -.avgrund-ready .avgrund-popin, -.avgrund-ready .avgrund-overlay { - -webkit-transform-origin: 50% 50%; - -moz-transform-origin: 50% 50%; - -ms-transform-origin: 50% 50%; - -o-transform-origin: 50% 50%; - transform-origin: 50% 50%; - - -webkit-transition: 0.3s all ease-out; - -moz-transition: 0.3s all ease-out; - -ms-transition: 0.3s all ease-out; - -o-transition: 0.3s all ease-out; - transition: 0.3s all ease-out; -} - -body.avgrund-active { - -webkit-transform: scale(0.9); - -moz-transform: scale(0.9); - -ms-transform: scale(0.9); - -o-transform: scale(0.9); - transform: scale(0.9); - overflow: hidden; -} - -.avgrund-active .avgrund-popin { - visibility: visible; - opacity: 1; - filter: alpha(opacity=100); - - -webkit-transform: scale(1.1); - -moz-transform: scale(1.1); - -ms-transform: scale(1.1); - -o-transform: scale(1.1); - transform: scale(1.1); -} - -.avgrund-active .avgrund-overlay { - visibility: visible; - opacity: .5; - filter: alpha(opacity=50); - height: 20000px; -} - -.avgrund-popin.stack { - -webkit-transform: scale(1.5); - -moz-transform: scale(1.5); - -ms-transform: scale(1.5); - -o-transform: scale(1.5); - transform: scale(1.5); -} - -.avgrund-active .avgrund-popin.stack { - -webkit-transform: scale(1.1); - -moz-transform: scale(1.1); - -ms-transform: scale(1.1); - -o-transform: scale(1.1); - transform: scale(1.1); -} - -.avgrund-active .avgrund-blur { - -webkit-filter: blur(1px); - -moz-filter: blur(1px); - -ms-filter: blur(1px); - -o-filter: blur(1px); - filter: blur(1px); -} - -/* Optional close button styles */ -.avgrund-close { - position: absolute; - top: 26px; - right: 10px; - width:25px; - height:25px; - display:block; - text-transform:uppercase; - text-decoration:none; - color: #A2A2A2; - background: #FFF; - font-family:"Tahoma", Helvetica, sans-serif; - text-align:center; - font-size:18px; - line-height:1.4em; - border-radius:50%; - -moz-border-radius:50%; - -webkit-border-radius:50%; - box-shadow:0px 0px 2px 0px #666; - -moz-box-shadow:0px 0px 2px 0px #666; - -webkit-box-shadow:0px 0px 2px 0px #666; - text-indent:1px; - font-weight:bold; -} diff --git a/css/style.css b/css/style.css index 265eec9..9a0bc59 100755 --- a/css/style.css +++ b/css/style.css @@ -4321,6 +4321,15 @@ License URI: http://www.opensource.org/licenses/mit-license.php #modal_popup{ display:none; + position: absolute; /* makes the div go into a position that’s absolute to the browser viewing area */ + left: 50%; /* positions the div half way horizontally */ + top: 50%; /* positions the div half way vertically */ + margin-top:-200px; + margin-left:-300px; + background-color: #ffffff; + width: 600px; + height:400px; + z-index: 100; /* makes the div the top layer, so it’ll lay on top of the other content */ } .header-modal { @@ -4328,8 +4337,10 @@ License URI: http://www.opensource.org/licenses/mit-license.php height: 60px; padding: 10px 30px; color: #FFF; - font-size: 18px; + font-size: 25px; line-height: 60px; + font-weight:bold; + text-align: center; } .modal-body { padding: 30px 10px 10px; @@ -4495,6 +4506,24 @@ License URI: http://www.opensource.org/licenses/mit-license.php display: none; } +#modal_overlay { + display: none; /* ensures it’s invisible until it’s called */ + position: absolute; /* makes the div go into a position that’s absolute to the browser viewing area */ + left: 0%; /* makes the div span all the way across the viewing area */ + top: 0%; /* makes the div span all the way across the viewing area */ + background-color: black; + -moz-opacity: 0.7; /* makes the div transparent, so you have a cool overlay effect */ + opacity: .70; + filter: alpha(opacity=70); + width: 100%; + height: 100%; + z-index: 90; /* makes the div the second most top layer, so it’ll lay on top of everything else EXCEPT for divs with a higher z-index (meaning the #overlay ruleset) */ +} + +div.addthis_toolbox { + width: 500px; + margin: 0 auto; +} /* Flags */ #ad {background-image: url(../images/flags/ad.png)} diff --git a/download.php b/download.php index b17401f..37e2352 100644 --- a/download.php +++ b/download.php @@ -6,12 +6,7 @@ } else { header("Location: /"); } - require_once("inc/social.php"); - $obj=new shareCount("http://get-popcorn.com"); //Use your website or URL - //echo $obj->get_tweets(); //to get tweets - //echo $obj->get_fb(); //to get facebook total count (likes+shares+comments) - //echo $obj->get_plusones(); //to get google plusones ?> @@ -19,7 +14,6 @@ -