Fix LiveJournal button encoding on not UTF-8 pages.

master
Artem Sapegin 2013-01-12 20:55:52 +04:00
parent cc68db7579
commit 6aa3cc2e50
3 changed files with 62 additions and 1 deletions

BIN
src/font/social-likes.woff Normal file

Binary file not shown.

61
src/font/style.css Normal file
View File

@ -0,0 +1,61 @@
@font-face {
font-family: 'social-likes';
src:url('fonts/social-likes.eot');
src:url('fonts/social-likes.eot?#iefix') format('embedded-opentype'),
url('fonts/social-likes.svg#social-likes') format('svg'),
url('fonts/social-likes.woff') format('woff'),
url('fonts/social-likes.ttf') format('truetype');
font-weight: normal;
font-style: normal;
}
/* Use the following CSS code if you want to use data attributes for inserting your icons */
[data-icon]:before {
font-family: 'social-likes';
content: attr(data-icon);
speak: none;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
/* Use the following CSS code if you want to have a class per icon */
[class^="icon-"]:before, [class*=" icon-"]:before {
font-family: 'social-likes';
font-style: normal;
speak: none;
font-weight: normal;
-webkit-font-smoothing: antialiased;
}
.icon-untitled:before {
content: "\e0c1";
}
.icon-untitled-2:before {
content: "\e0fa";
}
.icon-Vkontakte:before {
content: "\e003";
}
.icon-twitter:before {
content: "\e005";
}
.icon-google:before {
content: "\e01b";
}
.icon-LifeJournal:before {
content: "\e016";
}
.icon-GitHub-circle:before {
content: "\e01d";
}
.icon-facebook:before {
content: "\e021";
}
.icon-untitled-3:before {
content: "\e0c4";
}
.icon-code:before {
content: "\e001";
}
.icon-share:before {
content: "\e000";
}

View File

@ -163,7 +163,7 @@ var services = {
.replace(/&/g, '&')
.replace(/"/g, '"');
form = $(template(
'<form action="http://www.livejournal.com/update.bml" method="post" target="_blank">' +
'<form action="http://www.livejournal.com/update.bml" method="post" target="_blank" accept-charset="UTF-8">' +
'<input type="hidden" name="mode" value="full">' +
'<input type="hidden" name="subject" value="{title}">' +
'<input type="hidden" name="event" value="{html}">' +