Permalink
Browse files

updated archive and tags

  • Loading branch information...
1 parent a26169e commit 92a3f9ef1c3ffa00efc67bf67ccfe606ddf85678 @jamiecurle committed Jul 24, 2012
View
2 .gitignore
@@ -5,3 +5,5 @@ fabfile.yaml
media
xapian_index
/jamiecurle/jamiecurle/static/ccpages
+/jamiecurle/jamiecurle/static/ccfiletypes
+/jamiecurle/jamiecurle/static/omblog
View
102 jamiecurle/jamiecurle/static/omblog/css/omblog.writing.css
@@ -1,102 +0,0 @@
-/*
- Inconsolata typeface was designed and released by Raph Levien (http://twitter.com/raphlinus) : http://www.levien.com/
- Used under a SIL Open Font License, 1.1
-*/
-@font-face {
- font-family: 'Inconsolata';
- font-style: normal;
- font-weight: normal;
- src: local('Inconsolata'),
- url('/static/omblog/fonts/inconsolata.woff') format('woff');
-}
-/*
-The div and the text area
-*/
-
-fieldset.content div.writing{
- background-color: #fff;
- position: absolute;
- top: 0;
- left: 0;
-}
-fieldset.content div.writing textarea{
- width: 500px !important;
- outline: none;
- border: 0px none;
- margin: 0 auto;
- display: block;
- font-size: 18px;
- line-height: 28px;
- font-family: 'Inconsolata', sans-serif;
- font-style: normal;
- }
- div.writing label{
- display: none;
- }
-fieldset.content div input,
-fieldset.content div textarea#id_source_content{
- width: 97%;
- padding: 10px;
- font-size: 14px;
-}
-fieldset.content div textarea#id_source_content{
- height: 500px;
-}
-/*
-The activate and deactive links
-*/
-a.ajax_progress,
-a.activate,
-a.deactivate{
- width: 80px;
- height: 80px;
- display: inline-block;
- cursor: pointer;
-}
-
- a.ajax_progress{
- background-color: #000;
- color: #fff;
- font-size: 11px;
- text-transform: uppercase;
- font-family: 'Helvetica Neue',
- Helvetica,
- Arial,
- 'Sans Serif',
- sans-serif;
- line-height: 80px;
- text-align: center;
- }
-
- a.deactivate{
- display: none;
- background: transparent
- url(/static/omblog/img/deactivate.png)
- -10px -10px
- no-repeat;
- }
-
- a.activate{
- background: transparent
- url(/static/omblog/img/activate.png)
- -10px -10px
- no-repeat;
- }
-
- div.writing a.ajax_progress{
- position: fixed;
- top: 0;
- left: 100px;
- display: block;
- }
-
- div.writing a.deactivate{
- position: fixed;
- top: 0;
- left: 0;
- display: block;
- }
-
- div.writing a.activate{
- display: none;
- }
View
BIN jamiecurle/jamiecurle/static/omblog/fonts/AnonymousPro-Bold.woff
Binary file not shown.
View
BIN jamiecurle/jamiecurle/static/omblog/fonts/AnonymousPro-BoldItalic.woff
Binary file not shown.
View
BIN jamiecurle/jamiecurle/static/omblog/fonts/AnonymousPro-normal.woff
Binary file not shown.
View
BIN jamiecurle/jamiecurle/static/omblog/fonts/AnonymousPro.woff
Binary file not shown.
View
BIN jamiecurle/jamiecurle/static/omblog/fonts/WDf5lZYgdmmKhO8E1AQud6bFb7dg54i-VmmWhYOQ_f4.woff
Binary file not shown.
View
11 jamiecurle/jamiecurle/static/omblog/fonts/inconsolata.woff
@@ -1,11 +0,0 @@
---2012-04-26 07:48:56-- http://themes.googleusercontent.com/static/fonts/inconsolata/v5/BjAYBlHtW3CJxDcjzrnZCLrIa-7acMAeDBVuclsi6Gc.woff
-Resolving themes.googleusercontent.com... 173.194.41.107, 173.194.41.106, 173.194.41.108
-Connecting to themes.googleusercontent.com|173.194.41.107|:80... connected.
-HTTP request sent, awaiting response... 200 OK
-Length: 17136 (17K) [font/woff]
-Saving to: `BjAYBlHtW3CJxDcjzrnZCLrIa-7acMAeDBVuclsi6Gc.woff'
-
- 0K .......... ...... 100% 402K=0.04s
-
-2012-04-26 07:48:56 (402 KB/s) - `BjAYBlHtW3CJxDcjzrnZCLrIa-7acMAeDBVuclsi6Gc.woff' saved [17136/17136]
-
View
BIN jamiecurle/jamiecurle/static/omblog/img/activate.png
Deleted file not rendered
View
BIN jamiecurle/jamiecurle/static/omblog/img/ajax_progress.gif
Deleted file not rendered
View
BIN jamiecurle/jamiecurle/static/omblog/img/deactivate.png
Deleted file not rendered
View
94 jamiecurle/jamiecurle/static/omblog/js/omblog.writing.js
@@ -1,94 +0,0 @@
-/*
- js to turn your average run of the mill textarea
- into a delicious writing experience.
-
- The "Pencil" icon from the Noun Project
- http://thenounproject.com/noun/pencil/#icon-No347
- is used under a http://creativecommons.org/licenses/by/3.0/
- license.
-
-*/
-
-django.jQuery(function($){
-
- var activate_link = $('<a>').addClass('activate');
- var deactivate_link = $('<a>').addClass('deactivate');
- var ajax_progress = $('<a>').addClass('ajax_progress')
- .text('Saving')
- .hide();
- var original_width = $('#id_source_content').width();
- var original_height = $('#id_source_content').height();
-
- activate = function(){
- var width = $(document).width();
- var height = $(document).height();
- var stateObj = {writing: true};
- $('#id_source_content')
- .focus()
- .parent()
- .addClass('writing')
- .height(height)
- .width(width)
- .find('textarea')
- .height(height);
- }
-
- deactivate = function(){
- $('#id_source_content')
- .parent()
- .removeClass('writing')
- .height('auto')
- .width('auto')
- .find('textarea')
- .height(original_height)
- .width(original_width);
- }
-
- submit = function(){
- $('a.ajax_progress').show();
- $('#id_tags_to option').each(function(){
- $(this).attr('selected', 'selected');
- })
- data = $('#content-main form').serialize();
- $.ajax({
- type: 'POST',
- url: window.location.href,
- data: data,
- success : function(){
- $('a.ajax_progress').fadeOut(200)
- }
- });
- }
-
- activate_link.click(activate)
-
- $('#id_source_content')
- .after(activate_link)
- .after(deactivate_link)
- .after(ajax_progress)
-
- deactivate_link.click(deactivate)
-
- $(document).keydown(function(event) {
- console.log(event.metaKey)
- console.log(event.which)
- if (!( String.fromCharCode(event.which).toLowerCase() == 's' && event.metaKey) && !(event.which == 19)) return true;
- submit();
- event.preventDefault();
- return false;
- });
-
- $(window).keyup(function(e) {
- if (e.keyCode == 27) { deactivate() } // esc
- });
-
- $(window).resize(function(){
- var width = $(window).width();
- var height = $(window).height();
- console.log(width)
- $('div.writing')
- .width(width)
- .height(height)
- })
-})
-

0 comments on commit 92a3f9e

Please sign in to comment.