Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: osahyoun/sunrize
base: c4274cb6ec
...
head fork: osahyoun/sunrize
compare: 2a1998eb43
  • 3 commits
  • 4 files changed
  • 0 commit comments
  • 1 contributor
View
4 application.rb
@@ -3,6 +3,10 @@
require './lib/user'
require './lib/fetcher'
+configure(:development) do
+ ENV["REDISTOGO_URL"] = 'redis://username:password@localhost:6379'
+end
+
get '/' do
if params[:username]
@user = Sunrize::User.find(params[:username])
View
13 public/application.css
@@ -156,13 +156,24 @@ div.codewrap {
min-height: 30px;
padding: 10px;
margin-bottom: 10px;
+ margin-top: 20px;
border: 1px solid #CCC;
- width: 95%;
+ width: 500px;
font-weight: bold;
overflow: auto;
+ text-align: left;
}
#badge-wrapper {
height: 304px;
+}
+
+div.buttons {
+ text-align: center;
+}
+
+div.footer {
+ margin-top: 50px;
+ padding: 10px;
}
View
BIN  public/badge/memrise.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
48 views/index.erb
@@ -47,26 +47,50 @@
</script>
</div>
- <h2>Copy and paste this snippet onto your website</h2>
- <code class='codewrap' style=''>
- <pre class='code' style=''>
- &lt;script class=&quot;sunrize&quot; type=&quot;text/javascript&quot;&gt;
- Sunrize = {
- user: '<%= params[:username] %>'
- };
+ <h2>Copy and paste this snippet into your website</h2>
+<code class='codewrap' style=''>
+<pre class='code' style=''>
+&lt;script class=&quot;sunrize&quot; type=&quot;text/javascript&quot;&gt;
+Sunrize = {
+ user: '<%= params[:username] %>'
+};
- (function() {
+(function() {
var x = document.createElement(&#x27;script&#x27;);
x.src = &#x27;http://www.sunrize.me/badge.js&#x27;;
x.type = &#x27;text/javascript&#x27;;
x.async = &#x27;true&#x27;;
var s = document.getElementsByTagName(&#x27;script&#x27;)[0];
s.parentNode.insertBefore(x, s);
- })();
- &lt;/script&gt;
- </pre>
- </code>
+})();
+&lt;/script&gt;
+</pre>
+</code>
+
<% end %>
</div>
+
+ <div class='buttons footer'>
+ <a href="https://twitter.com/share" class="twitter-share-button">Tweet</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ <a href="https://twitter.com/omarsahyoun" class="twitter-follow-button" data-show-count="false" data-show-screen-name="false">Follow @omarsahyoun</a>
+ <script>!function(d,s,id){var js,fjs=d.getElementsByTagName(s)[0];if(!d.getElementById(id)){js=d.createElement(s);js.id=id;js.src="//platform.twitter.com/widgets.js";fjs.parentNode.insertBefore(js,fjs);}}(document,"script","twitter-wjs");</script>
+ </div>
+
+
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-283355-13']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+
</body>
</html>

No commit comments for this range

Something went wrong with that request. Please try again.