Commit cd95f97c authored by Sriram Karra's avatar Sriram Karra

Remove the gae/ subdir as it is moving to its own repo.

parent 42b939b1
Created : Sat May 12 11:15:38 IST 2012
Last Modified : Sat May 12 11:17:00 IST 2012
This directory contains the source code that powers the main public website for ASynK: http://karra-asynk.appspot.com/, which is hosted by Google App Engine
application: karra-asynk
version: 1
runtime: python
api_version: 1
handlers:
- url: /css
static_dir: css
- url: /images
static_dir: images
- url: /js
static_dir: js
- url: /doc
static_dir: doc
- url: /downloads
static_dir: downloads
- url: /.*
script: asynk.py
builtins:
- datastore_admin: on
##
## Created : Sat May 12 11:31:29 IST 2012
## Last Modified : Fri Mar 22 15:07:02 IST 2013
##
## Copyright (C) 2012 by Sriram Karra <karra.etc@gmail.com>
##
## This file is part of ASynK
##
## ASynK is free software: you can redistribute it and/or modify it under
## the terms of the GNU Affero General Public License as published by the
## Free Software Foundation, version 3 of the License
##
## ASynK is distributed in the hope that it will be useful, but WITHOUT
## ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
## FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public
## License for more details.
##
## You should have a copy of the license in the doc/ directory of ASynK. If
## not, see <http://www.gnu.org/licenses/>.
##
import os
os.environ['DJANGO_SETTINGS_MODULE'] = 'settings'
from google.appengine.dist import use_library
use_library('django', '1.2')
from google.appengine.ext import webapp, db
from google.appengine.ext.webapp import template
from google.appengine.ext.webapp.util import run_wsgi_app
class MainPage(webapp.RequestHandler):
def get(self):
intro = ''
path = os.path.join(os.path.dirname(__file__), 'intro.html')
f = open(path, 'r')
intro = f.read()
template_values = {
'intro_html': intro,
}
path = os.path.join(os.path.dirname(__file__), 'index.html')
self.response.out.write(template.render(path, template_values))
application = webapp.WSGIApplication([('/', MainPage),
],
debug=True)
def main():
run_wsgi_app(application)
if __name__ == "__main__":
main()
This diff is collapsed.
../doc
\ No newline at end of file
This diff is collapsed.
//
// Created : Sat May 05 13:15:20 IST 2012
// Last Modified : Sat Jun 16 19:18:58 IST 2012
//
// Copyright (C) 2012, Sriram Karra <karra.etc@gmail.com>
// All Rights Reserved
//
// Licensed under the GNU AGPL v3
//
function hideAllSheetDivs() {
$("#sheet").children().css({display : "none"})
}
// Register callbacks to handle specific events on our main UI.
function addFormHandlers () {
console.log('addFormHandlers');
$("#home").mouseenter(function () {
hideAllSheetDivs();
$("#home_text").css({display : "block"});
})
$("#announce").mouseenter(function () {
hideAllSheetDivs()
$("#announce_text").css({display : "block"})
})
$("#support").mouseenter(function () {
hideAllSheetDivs()
$("#support_text").css({display : "block"})
})
$("#downloads").mouseenter(function () {
hideAllSheetDivs()
$("#downloads_text").css({display : "block"})
})
$("#doc").mouseenter(function () {
hideAllSheetDivs()
$("#doc_text").css({display : "block"});
})
$("#about").mouseenter(function () {
hideAllSheetDivs()
$("#about_text").css({display : "block"})
})
$(".announce_download").click(function () {
$("#downloads").mouseenter();
})
}
function onLoad () {
// Initialize the database if available
addFormHandlers();
}
jQuery(onLoad);
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment