Skip to content

Commit

Permalink
Share buttons and fix SEO
Browse files Browse the repository at this point in the history
  • Loading branch information
ermakus committed Oct 30, 2012
1 parent f6a4413 commit 8eadd51
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 7 deletions.
8 changes: 4 additions & 4 deletions encipher.coffee
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,26 @@ app.get '/', (req, res)->
store.loadHash parts[0], (error, cipher)->
console.log "Hash", parts[0], "Body", cipher
res.render 'index',
title: 'You Got Encrypted Message'
title: 'You got encrypted Message'
cipher: cipher or (error and error.message)
encrypted: true
def_bookmarklet: bookmarklet()
else
res.render 'index',
title: 'Encipher.it – encrypt text or email in one click'
title: 'Encipher.it – Encrypt text or email message in one click'
cipher: "Sample text"
encrypted: false
def_bookmarklet: bookmarklet()

app.get '/help', (req, res)->
res.render 'help', {
title: 'Encipher.it – How to encrypt emails and text messages'
title: 'Encipher.it – How to encrypt email and text messages'
def_bookmarklet: bookmarklet()
}

app.get '/ios', (req, res)->
res.render 'ios', {
title: 'Encipher.it - iOS version'
title: 'Encipher.it - Mobile version'
def_bookmarklet: bookmarklet('ios')
layout: false
}
Expand Down
8 changes: 7 additions & 1 deletion public/gui.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
}
.gui-composer {
position: fixed;
font-size: 16px;
font-size: 15px;
font-family: monospace;
padding: 4px;
width: 100%;
Expand All @@ -33,10 +33,16 @@
<script type="text/coffeescript">
$ ->
path = require 'path'
gui = require 'nw.gui'
base = 'file://' + path.dirname(path.dirname(process.execPath)) + '/public'
encipher = new Encipher(base)
$('.encipher').click ->
encipher.startup()
window.setTimeout = global.setTimeout
text = gui.Clipboard.get().get('text')
$('.gui-composer').val( JSON.stringify(text) )
if text
encipher.startup()
</script>
<script type="text/javascript" src="javascripts/coffee-script.js"></script>
</head>
Expand Down
8 changes: 7 additions & 1 deletion public/stylesheets/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,7 @@ div.footer a.up{

#like {
display: inline-block;
margin-top: 10px;
margin-top: 1px;
width: 100px;
}

Expand Down Expand Up @@ -316,3 +316,9 @@ div.footer a.up{
.encipher-close {
background: url(../images/close-white.png) no-repeat center center;
}


.shares li {
height: 30px;
vertical-align: middle;
}
12 changes: 11 additions & 1 deletion views/layout.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@
html
head
title= title
meta(name="description") Text encryptor for Google Mail or anything else
meta(name="description", content="Encrypting email with Encipher.it is a simple way to protect your sensitive data. You can encrypt emails or text messages and only the recipient can decrypt it with correct password. Encipher.it integrated with google mail and many other web applications.")

link(rel='stylesheet', href='/stylesheets/style.css')
link(rel='stylesheet', href='/stylesheets/contactable.css')
script(type='text/javascript', src='/javascripts/jquery.min.js')
Expand All @@ -21,6 +22,8 @@ html
script(type="text/javascript", src="/javascripts/flashdetect.min.js")
script(type="text/javascript", src="/javascripts/ZeroClipboard.min.js")
script(type="text/javascript", src="https://connect.facebook.net/en_US/all.js")
script(type="text/javascript", src="https://apis.google.com/js/plusone.js")
script#twitter-wjs(type="text/javascript", src="//platform.twitter.com/widgets.js");
script
var _gaq = _gaq || [];
_gaq.push(['_setAccount', 'UA-17946320-4']);
Expand All @@ -47,8 +50,15 @@ html
a(href="/help") Help
li
a(href="/ios") Mobile
ul.shares
li#like
fb:like(href="https://encipher.it",send="false",layout="button_count",width="80",show-faces="false")
li
a(href="https://twitter.com/share",class="twitter-share-button",data-via="encipherit") Tweet
li
g:plusone(size="medium")


block contents
.footer
.line
Expand Down

0 comments on commit 8eadd51

Please sign in to comment.