├── sample_project ├── __init__.py ├── manage.py ├── urls.py └── settings.py ├── requirements.txt ├── static ├── js │ ├── wtid.js │ ├── meter.js │ ├── 722219967.js │ ├── revenuescience.js │ ├── wtinit.js │ ├── embed3.js │ ├── production.js │ ├── tabset.js │ ├── beacon.js │ ├── mtr.js │ ├── chartbeat.js │ ├── gw.js │ ├── NYTInlineEmbed.js │ ├── swfobject1.1.js │ ├── trackingTags_v1.1.js │ ├── show_ads.js │ ├── cm8_detect_ad.js │ ├── wtbase.js │ └── recommendationsModule.js ├── img │ ├── go.gif │ ├── blank.gif │ ├── none.png │ ├── nytimes.gif │ ├── twitter.gif │ ├── audio_icon.gif │ ├── facebook.gif │ ├── saved_resource │ ├── video_icon.gif │ ├── comment_icon.gif │ ├── facebook(1).gif │ ├── frontpage-75.gif │ ├── moth_forward.gif │ ├── arrow-right-3x5.gif │ ├── bc_nytimesLogo.gif │ ├── comment_icon(1).gif │ ├── nytlogo379x64.gif │ ├── 21moth_river-moth.jpg │ ├── moth_reverse_off.gif │ ├── recommendedLogin.png │ ├── tmagazine_072111.jpg │ ├── 092117_TStyle_163x90.gif │ ├── 21moth-vikram-moth.jpg │ ├── 21moth_location-moth.jpg │ ├── 21moth_townies-moth.jpg │ ├── 22shuttle-c-hpLarge.jpg │ ├── Amish-thumbStandard.jpg │ ├── KN_Briefcase_88x31.gif │ ├── POGUE-thumbStandard.jpg │ ├── cobrandHeader_315x20.gif │ ├── pencil_00010_bnr6a.gif │ ├── recommendedFacebook.png │ ├── recommendedRegister.png │ ├── search_button40x19.gif │ ├── summer-thumbStandard.jpg │ ├── verticals_tmagazine.gif │ ├── 3.12.11-515_logo78x36.jpg │ ├── 17-CORNER-thumbStandard.jpg │ ├── 21moth_artofsummer-moth.jpg │ ├── jp-ROMNEY-thumbStandard.jpg │ ├── 17living_span-thumbStandard.jpg │ ├── lwrRite_0005_bnr4a_163x90_1.jpg │ ├── video-bushwacker-videoThumb.jpg │ ├── video-spinaltap-videoThumb.jpg │ ├── 3.12.11-515e72-dining_room72.gif │ ├── Kristof_New-thumbStandard-v2.jpg │ ├── loading-grey-lines-circle-18.gif │ ├── video-caucus-071811-videoThumb.jpg │ ├── video-caucus-072011-videoThumb.jpg │ ├── 21playhouses-span-thumbStandard.jpg │ ├── 11-0220_AudienceDev_120x90_gluten.jpg │ ├── 17focus-slideshow-slide-2OXD-thumbStandard.jpg │ └── 60ed6cffQ2FQ5CRDQ2FQ2FQ5BF1R)Q27gl5LLQ2B5ZQ3AYF)L └── css │ ├── styles(1).css │ ├── newsletterPrefs.css │ ├── homepage.css │ ├── twittertool.css │ └── styles(2).css ├── conf ├── gunicorn.conf ├── pg_hba.conf ├── nginx.conf ├── supervisord.conf └── postgresql_8.4.conf ├── fabconfig.yaml └── fabfile.py /sample_project/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /requirements.txt: -------------------------------------------------------------------------------- 1 | Django==1.3 2 | psycopg2 -------------------------------------------------------------------------------- /static/js/wtid.js: -------------------------------------------------------------------------------- 1 | 4 | -------------------------------------------------------------------------------- /static/img/go.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/go.gif -------------------------------------------------------------------------------- /static/img/blank.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/blank.gif -------------------------------------------------------------------------------- /static/img/none.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/none.png -------------------------------------------------------------------------------- /static/img/nytimes.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/nytimes.gif -------------------------------------------------------------------------------- /static/img/twitter.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/twitter.gif -------------------------------------------------------------------------------- /static/img/audio_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/audio_icon.gif -------------------------------------------------------------------------------- /static/img/facebook.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/facebook.gif -------------------------------------------------------------------------------- /static/img/saved_resource: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/saved_resource -------------------------------------------------------------------------------- /static/img/video_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/video_icon.gif -------------------------------------------------------------------------------- /static/img/comment_icon.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/comment_icon.gif -------------------------------------------------------------------------------- /static/img/facebook(1).gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/facebook(1).gif -------------------------------------------------------------------------------- /static/img/frontpage-75.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/frontpage-75.gif -------------------------------------------------------------------------------- /static/img/moth_forward.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/moth_forward.gif -------------------------------------------------------------------------------- /static/img/arrow-right-3x5.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/arrow-right-3x5.gif -------------------------------------------------------------------------------- /static/img/bc_nytimesLogo.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/bc_nytimesLogo.gif -------------------------------------------------------------------------------- /static/img/comment_icon(1).gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/comment_icon(1).gif -------------------------------------------------------------------------------- /static/img/nytlogo379x64.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/nytlogo379x64.gif -------------------------------------------------------------------------------- /static/img/21moth_river-moth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/21moth_river-moth.jpg -------------------------------------------------------------------------------- /static/img/moth_reverse_off.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/moth_reverse_off.gif -------------------------------------------------------------------------------- /static/img/recommendedLogin.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/recommendedLogin.png -------------------------------------------------------------------------------- /static/img/tmagazine_072111.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/tmagazine_072111.jpg -------------------------------------------------------------------------------- /static/js/meter.js: -------------------------------------------------------------------------------- 1 | n1311246422402({"hitPaywall":false,"counted":false,"loggedIn":false,"hash":"5D615D2BD2CD75735CBB8B4162C3032F"}); 2 | -------------------------------------------------------------------------------- /static/img/092117_TStyle_163x90.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/092117_TStyle_163x90.gif -------------------------------------------------------------------------------- /static/img/21moth-vikram-moth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/21moth-vikram-moth.jpg -------------------------------------------------------------------------------- /static/img/21moth_location-moth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/21moth_location-moth.jpg -------------------------------------------------------------------------------- /static/img/21moth_townies-moth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/21moth_townies-moth.jpg -------------------------------------------------------------------------------- /static/img/22shuttle-c-hpLarge.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/22shuttle-c-hpLarge.jpg -------------------------------------------------------------------------------- /static/img/Amish-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/Amish-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/KN_Briefcase_88x31.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/KN_Briefcase_88x31.gif -------------------------------------------------------------------------------- /static/img/POGUE-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/POGUE-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/cobrandHeader_315x20.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/cobrandHeader_315x20.gif -------------------------------------------------------------------------------- /static/img/pencil_00010_bnr6a.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/pencil_00010_bnr6a.gif -------------------------------------------------------------------------------- /static/img/recommendedFacebook.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/recommendedFacebook.png -------------------------------------------------------------------------------- /static/img/recommendedRegister.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/recommendedRegister.png -------------------------------------------------------------------------------- /static/img/search_button40x19.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/search_button40x19.gif -------------------------------------------------------------------------------- /static/img/summer-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/summer-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/verticals_tmagazine.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/verticals_tmagazine.gif -------------------------------------------------------------------------------- /static/img/3.12.11-515_logo78x36.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/3.12.11-515_logo78x36.jpg -------------------------------------------------------------------------------- /static/img/17-CORNER-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/17-CORNER-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/21moth_artofsummer-moth.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/21moth_artofsummer-moth.jpg -------------------------------------------------------------------------------- /static/img/jp-ROMNEY-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/jp-ROMNEY-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/17living_span-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/17living_span-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/lwrRite_0005_bnr4a_163x90_1.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/lwrRite_0005_bnr4a_163x90_1.jpg -------------------------------------------------------------------------------- /static/img/video-bushwacker-videoThumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/video-bushwacker-videoThumb.jpg -------------------------------------------------------------------------------- /static/img/video-spinaltap-videoThumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/video-spinaltap-videoThumb.jpg -------------------------------------------------------------------------------- /static/img/3.12.11-515e72-dining_room72.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/3.12.11-515e72-dining_room72.gif -------------------------------------------------------------------------------- /static/img/Kristof_New-thumbStandard-v2.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/Kristof_New-thumbStandard-v2.jpg -------------------------------------------------------------------------------- /static/img/loading-grey-lines-circle-18.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/loading-grey-lines-circle-18.gif -------------------------------------------------------------------------------- /static/img/video-caucus-071811-videoThumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/video-caucus-071811-videoThumb.jpg -------------------------------------------------------------------------------- /static/img/video-caucus-072011-videoThumb.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/video-caucus-072011-videoThumb.jpg -------------------------------------------------------------------------------- /static/img/21playhouses-span-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/21playhouses-span-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/11-0220_AudienceDev_120x90_gluten.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/11-0220_AudienceDev_120x90_gluten.jpg -------------------------------------------------------------------------------- /static/img/17focus-slideshow-slide-2OXD-thumbStandard.jpg: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/17focus-slideshow-slide-2OXD-thumbStandard.jpg -------------------------------------------------------------------------------- /static/img/60ed6cffQ2FQ5CRDQ2FQ2FQ5BF1R)Q27gl5LLQ2B5ZQ3AYF)L: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/tkopczuk/one_second_django_deployment/HEAD/static/img/60ed6cffQ2FQ5CRDQ2FQ2FQ5BF1R)Q27gl5LLQ2B5ZQ3AYF)L -------------------------------------------------------------------------------- /conf/gunicorn.conf: -------------------------------------------------------------------------------- 1 | bind = "unix:%(path)s/sock/gunicorn.sock" 2 | pidfile = "%(path)s/pid/gunicorn.pid" 3 | logfile = "%(path)s/logs/gunicorn.log" 4 | 5 | daemon = False 6 | 7 | backlog = 1000 8 | workers = 2 -------------------------------------------------------------------------------- /conf/pg_hba.conf: -------------------------------------------------------------------------------- 1 | # Database administrative login by UNIX sockets 2 | local all postgres trust 3 | 4 | # TYPE DATABASE USER CIDR-ADDRESS METHOD 5 | 6 | # "local" is for Unix domain socket connections only 7 | local all all ident 8 | # IPv4 local connections: 9 | host all all 127.0.0.1/32 md5 10 | # IPv6 local connections: 11 | host all all ::1/128 md5 12 | host %(database_name)s %(database_user)s 0.0.0.0/0 md5 13 | -------------------------------------------------------------------------------- /sample_project/manage.py: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env python 2 | from django.core.management import execute_manager 3 | import imp 4 | try: 5 | imp.find_module('settings') # Assumed to be in the same directory. 6 | except ImportError: 7 | import sys 8 | sys.stderr.write("Error: Can't find the file 'settings.py' in the directory containing %r. It appears you've customized things.\nYou'll have to run django-admin.py, passing it your settings module.\n" % __file__) 9 | sys.exit(1) 10 | 11 | import settings 12 | 13 | if __name__ == "__main__": 14 | execute_manager(settings) 15 | -------------------------------------------------------------------------------- /sample_project/urls.py: -------------------------------------------------------------------------------- 1 | from django.conf.urls.defaults import patterns, include, url 2 | 3 | # Uncomment the next two lines to enable the admin: 4 | # from django.contrib import admin 5 | # admin.autodiscover() 6 | 7 | urlpatterns = patterns('', 8 | # Examples: 9 | # url(r'^$', 'sample_project.views.home', name='home'), 10 | # url(r'^sample_project/', include('sample_project.foo.urls')), 11 | 12 | # Uncomment the admin/doc line below to enable admin documentation: 13 | # url(r'^admin/doc/', include('django.contrib.admindocs.urls')), 14 | 15 | # Uncomment the next line to enable the admin: 16 | # url(r'^admin/', include(admin.site.urls)), 17 | ) 18 | -------------------------------------------------------------------------------- /static/js/722219967.js: -------------------------------------------------------------------------------- 1 | /* AG-develop 12.7.1-48 (2011-07-13 07:11:32 UTC) */ 2 | rsinetsegs=[]; 3 | var rsiExp=new Date((new Date()).getTime()+2419200000); 4 | var rsiDom=location.hostname; 5 | rsiDom=rsiDom.replace(/.*(\.[\w\-]+\.[a-zA-Z]{3}$)/,'$1'); 6 | rsiDom=rsiDom.replace(/.*(\.[\w\-]+\.\w+\.[a-zA-Z]{2}$)/,'$1'); 7 | rsiDom=rsiDom.replace(/.*(\.[\w\-]{3,}\.[a-zA-Z]{2}$)/,'$1'); 8 | var rsiSegs=""; 9 | var rsiPat=/.*_5.*/; 10 | for(x=0;x0?rsiSegs.substr(1):"")+";expires="+rsiExp.toGMTString()+";path=/;domain="+rsiDom; 12 | if(typeof(DM_onSegsAvailable)=="function"){DM_onSegsAvailable([],'h07707');} -------------------------------------------------------------------------------- /conf/nginx.conf: -------------------------------------------------------------------------------- 1 | worker_processes 2; 2 | 3 | daemon off; 4 | pid %(path)s/pid/nginx.pid; 5 | 6 | events { 7 | worker_connections 1024; 8 | } 9 | 10 | http { 11 | include mime.types; 12 | default_type application/octet-stream; 13 | 14 | upstream gunicorn { 15 | server unix:%(path)s/sock/gunicorn.sock; 16 | } 17 | 18 | server { 19 | listen 8080; 20 | 21 | access_log %(path)s/logs/nginx_gunicorn_access.log; 22 | error_log %(path)s/logs/nginx_gunicorn_error.log; 23 | 24 | location / { 25 | keepalive_timeout 0; 26 | 27 | proxy_set_header X-Real-IP $remote_addr; 28 | proxy_set_header REMOTE_HOST $remote_addr; 29 | proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; 30 | proxy_set_header X-FORWARDED-PROTOCOL $scheme; 31 | proxy_pass http://gunicorn; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /conf/supervisord.conf: -------------------------------------------------------------------------------- 1 | [unix_http_server] 2 | file=%(path)s/sock/supervisord.sock 3 | chmod=0755 4 | chown=%(run_daemons_as_user)s 5 | 6 | [rpcinterface:supervisor] 7 | supervisor.rpcinterface_factory = supervisor.rpcinterface:make_main_rpcinterface 8 | 9 | 10 | 11 | [supervisord] 12 | logfile=%(path)s/logs/supervisord.log 13 | pidfile=%(path)s/pid/supervisord.pid 14 | user=%(run_daemons_as_user)s 15 | 16 | [supervisorctl] 17 | serverurl=unix://%(path)s/sock/supervisord.sock 18 | 19 | 20 | 21 | [program:gunicorn] 22 | directory=%(path)s/releases/current/%(django_project_name)s 23 | command=%(path)s/bin/gunicorn_django -c %(path)s/conf/gunicorn.conf 24 | autostart=true 25 | autorestart=true 26 | redirect_stderr=True 27 | user=%(run_daemons_as_user)s 28 | 29 | [program:nginx] 30 | directory=%(path)s/releases/current 31 | command=%(path)s/sbin/nginx -c %(path)s/conf/nginx.conf 32 | autostart=true 33 | autorestart=true 34 | redirect_stderr=True 35 | user=%(run_daemons_as_user)s 36 | -------------------------------------------------------------------------------- /static/css/styles(1).css: -------------------------------------------------------------------------------- 1 | /*$Id: styles.css 7828 2009-01-13 18:27:03Z fisherc $ 2 | /css/0.1/print/styles.css 3 | (c)2006 - 2009 The New York Times Company */ 4 | 5 | /* Global */ 6 | 7 | #shell { 8 | width: 973px !important; 9 | } 10 | 11 | #page { 12 | *overflow: hidden !important; 13 | } 14 | 15 | /* Times People */ 16 | 17 | #TP_container, 18 | #TP_container_shadow { 19 | position: absolute !important; 20 | } 21 | 22 | /* Sectionfront */ 23 | 24 | .wideA .bColumn { 25 | *width: 203px !important; 26 | _width: 203px !important; 27 | } 28 | 29 | /* Homepage */ 30 | 31 | #home #main, 32 | #home #classifiedsWidget #realEstate, 33 | #home #classifiedsWidget #autos, 34 | #home #classifiedsWidget #jobMarket, 35 | #home #classifiedsWidget #allClassifieds { 36 | *overflow: hidden !important; 37 | } 38 | 39 | #home .cColumn { 40 | *width: 350px !important; 41 | _width: 350px !important; 42 | } 43 | 44 | #home .cColumn .subColumn-2 div.last, 45 | #home .cColumn .subColumn-2 .lastColumn { 46 | *width: 176px !important; 47 | _width: 176px !important; 48 | } 49 | 50 | #home .wideA .bColumn { 51 | *width: 173px !important; 52 | _width: 173px !important; 53 | } 54 | -------------------------------------------------------------------------------- /static/js/revenuescience.js: -------------------------------------------------------------------------------- 1 | /* 2 | $Id: revenuescience.js 58008 2011-02-11 19:17:19Z alex.wallace $ 3 | */ 4 | 5 | function getMetaTag(tagName) { 6 | 7 | var metaTags=document.getElementsByTagName("meta"); 8 | for(var i in metaTags){ 9 | if(metaTags[i].name == tagName) { 10 | return metaTags[i].content; 11 | } 12 | } 13 | return ""; 14 | } 15 | 16 | function addCategory(category, valueToAppend) { 17 | 18 | if (valueToAppend != "") 19 | return category + " > " + valueToAppend; 20 | else 21 | return category; 22 | } 23 | 24 | function revenuescienceInit() { 25 | var contentGroup = getMetaTag("WT.cg_n"); 26 | if (contentGroup != "Homepage") { 27 | var catValue = "NYTimesglobal"; 28 | catValue = addCategory(catValue, contentGroup); 29 | catValue = addCategory(catValue, getMetaTag("WT.cg_s")); 30 | DM_cat(catValue); 31 | DM_tag(); 32 | } 33 | } 34 | 35 | if (/MSIE/.test(navigator.userAgent)) { 36 | // In IE, wrapping this code block in setTimeout is needed because in certain cases, 37 | // it will execute before other script files needed are fully loaded. 38 | window.setTimeout(revenuescienceInit, 100); 39 | } else { 40 | revenuescienceInit(); 41 | } 42 | -------------------------------------------------------------------------------- /static/css/newsletterPrefs.css: -------------------------------------------------------------------------------- 1 | #facebookModalBg { 2 | position:fixed; 3 | width:100%; 4 | height:100%; 5 | top:0; 6 | z-index:2147483644; 7 | } 8 | 9 | #facebookModal { 10 | position:relative; 11 | top:150px; 12 | width:632px; 13 | height:340px; 14 | margin:0 auto; 15 | background:white; 16 | box-shadow: 2px 2px 14px #000000; 17 | -moz-box-shadow: 2px 2px 14px #000000; 18 | -webkit-box-shadow:2px 2px 14px #000000; 19 | } 20 | 21 | #facebookModal .inset { 22 | margin: 14px; 23 | } 24 | 25 | #facebookModal p { 26 | font-family: Arial, Helvetica, sans-serif; 27 | font-size:13px; 28 | margin-bottom:8px; 29 | } 30 | 31 | #facebookModal label{ 32 | color: #999; 33 | margin-bottom:8px; 34 | } 35 | 36 | .facebookModalBar { 37 | position:absolute; 38 | width:100%; 39 | bottom:0; 40 | text-align:right; 41 | background: #f6f6f6; 42 | border-top:1px solid #ccc; 43 | height:56px; 44 | } 45 | 46 | .facebookModalBarTop { 47 | border-top:0; 48 | border-bottom:1px solid #ccc; 49 | top:0; 50 | } 51 | 52 | #facebookModal td{ 53 | vertical-align:top; 54 | } 55 | 56 | #facebookModal .facebookModalInner { 57 | padding: 90px 30px 30px; 58 | } 59 | 60 | #facebookModal .facebookModalText { 61 | font-family: Georgia, serif; 62 | font-size:14px; 63 | margin-bottom:16px; 64 | } -------------------------------------------------------------------------------- /static/css/homepage.css: -------------------------------------------------------------------------------- 1 | @import url("/css/app/facebook/base.css"); 2 | 3 | #facebookContainer { 4 | width: 187px !important; 5 | margin-top: -26px; 6 | margin-bottom: -1px; 7 | background-color: #fff; 8 | border: 1px solid #ccc; 9 | margin-left:-1px !important; 10 | } 11 | #facebookContainer .actor, 12 | #facebookContainer p { 13 | font-size:11px; 14 | line-height:14px; 15 | } 16 | 17 | #facebookContainer .popular { 18 | font-size:12px; 19 | } 20 | 21 | #facebookContainer .caption { 22 | margin-top: 10px; 23 | margin-bottom: 5px; 24 | } 25 | 26 | .fbPrivacy { 27 | font-family: arial, helvetica, sans-serif; 28 | color: #777; 29 | font-size: 11px; 30 | line-height: 14px; 31 | border-bottom: 1px solid #ccc; 32 | padding-bottom: 10px; 33 | margin-bottom: 10px; 34 | } 35 | 36 | #cColumnTopSpanRegion 37 | .singleRuleDivider { 38 | margin-top: 0 !important; 39 | } 40 | 41 | .fb_button { 42 | width:100%; 43 | } 44 | 45 | .fb_button_text { 46 | text-align:center; 47 | padding-right:0px !important; 48 | padding-left:0px !important; 49 | } 50 | 51 | #facebookContainer .popular { 52 | background:url("/images/misc/bullet4x4.gif") no-repeat scroll left 0.45em transparent; 53 | padding:0 0 0 8px; 54 | } 55 | 56 | #fbInfo { 57 | display:block; 58 | } 59 | 60 | #facebookContainer.loggedIn #fbInfo { 61 | margin-top:-1.1em; 62 | margin-bottom:1em; 63 | } 64 | -------------------------------------------------------------------------------- /static/js/wtinit.js: -------------------------------------------------------------------------------- 1 | function DcsInit(){ 2 | this.enabled=true; 3 | this.trackevents=gtrackevents; 4 | this.dcsid=gdcsid; 5 | this.fpcdom = (function(){ 6 | var d = document.location.hostname.split('.'), 7 | l = d.length, 8 | fpcdom = (l >= 2) ? "." + d[l-2] + "." + d[l-1] : ""; 9 | return fpcdom; 10 | })(); 11 | this.domain=gdomain; 12 | this.exre=(function(){ 13 | if (window.RegExp){ 14 | return(new RegExp("dcs(uri)|(ref)|(aut)|(met)|(sta)|(sip)|(pro)|(byt)|(dat)|(p3p)|(cfg)|(redirect)|(cip)","i")); 15 | } 16 | else{ 17 | return(""); 18 | } 19 | })(); 20 | this.fpc="WT_FPC"; 21 | this.i18n=false; 22 | this.images=[]; 23 | this.index=0; 24 | this.qp=[]; 25 | this.re=(function(){ 26 | if (window.RegExp){ 27 | return(this.i18n?{"%25":/\%/g}:{"%09":/\t/g,"%20":/ /g,"%23":/\#/g,"%26":/\&/g,"%2B":/\+/g,"%3F":/\?/g,"%5C":/\\/g,"%22":/\"/g,"%7F":/\x7F/g,"%A0":/\xA0/g}); 28 | } 29 | else{ 30 | return(""); 31 | } 32 | })(); 33 | this.timezone=-5; 34 | // var t=this; 35 | // (function(){ 36 | // if (t.enabled&&(document.cookie.indexOf(t.fpc+"=")==-1)&&(document.cookie.indexOf("WTLOPTOUT=")==-1)){ 37 | // document.write("<\/scr"+"ipt>"); 38 | // } 39 | // })(); 40 | } 41 | var DCS={}; 42 | var WT={}; 43 | var DCSext={}; 44 | var dcsInit=new DcsInit(); 45 | 46 | -------------------------------------------------------------------------------- /static/js/embed3.js: -------------------------------------------------------------------------------- 1 | var plugin = 0; 2 | 3 | if (navigator.mimeTypes && navigator.mimeTypes["application/x-shockwave-flash"] && navigator.mimeTypes["application/x-shockwave-flash"].enabledPlugin) { 4 | if (navigator.plugins && navigator.plugins["Shockwave Flash"]) plugin = 1; 5 | } 6 | else if (navigator.userAgent && navigator.userAgent.indexOf("MSIE")>=0 && (navigator.userAgent.indexOf("Windows 95")>=0 || navigator.userAgent.indexOf("Windows 98")>=0 || navigator.userAgent.indexOf("Windows NT")>=0)) { 7 | document.write('