Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 98 lines (91 sloc) 4.029 kB
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
1 <?xml version="1.0"?>
2 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
3 <html xmlns="http://www.w3.org/1999/xhtml">
4 <head>
5 <title>Perl 101 - [% section | html %]</title>
6 <link rel="stylesheet"
7 type="text/css"
8 media="screen"
2b0d59d @petdance removed the "static/" dir
authored
9 href="theme/styles.css" />
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
10 <link rel="stylesheet"
11 type="text/css"
12 media="print"
2b0d59d @petdance removed the "static/" dir
authored
13 href="theme/print.css" />
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
14 <link rel="stylesheet"
15 type="text/css"
16 media="handheld"
2b0d59d @petdance removed the "static/" dir
authored
17 href="theme/handheld.css" />
18 <link href="theme/prettify.css" type="text/css" rel="stylesheet" />
19 <script type="text/javascript" src="/js/jemplate.js"></script>
ef14b81 @petdance renamed section.tt to page.ttml
authored
20 <script type="text/javascript" src="/js/jmpls.js"></script>
2b0d59d @petdance removed the "static/" dir
authored
21 <script type="text/javascript" src="/js/prettify.js"></script>
5e90f26 adding send_mail() js function with jmpls and jemplate deps
sawyer authored
22 <script type="text/javascript">
23 function send_mail() {
24 var subject = document.getElementById('subject').value;
25 var realname = document.getElementById('realname').value;
26 var email = document.getElementById('email').value;
27 var text = document.getElementById('text').value;
28 var return_link_url = document.getElementById('return_link_url').value;
29 var return_link_title = document.getElementById('return_link_title').value;
30
31 if ( email == "" ) {
32 alert('Name is mandatory');
33 return false;
34 }
35
36 if ( realname == "" ) {
37 alert('Name is mandatory');
38 return false;
39 }
40
41 if ( text == "" ) {
42 alert('Text is mandatory');
43 return false;
44 }
45
3c3de79 make the AJAX work
sawyer authored
46 var href = '/cgi-bin/formmail.pl?subject=' + subject +
47 '&realname=' + realname +
48 '&email=' + email +
49 '&text=' + text +
50 '&return_link_url=' + return_link_url +
51 '&return_link_title=' + return_link_title;
5e90f26 adding send_mail() js function with jmpls and jemplate deps
sawyer authored
52
3c3de79 make the AJAX work
sawyer authored
53 var res = Jemplate.process(
54 'show.tt',
55 href,
56 '#feedback_form'
57 );
5e90f26 adding send_mail() js function with jmpls and jemplate deps
sawyer authored
58 }
59 </script>
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
60 </head>
bac9480 added onload to the body tag
Miss Ferret authored
61 <body onload="prettyPrint()">
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
62 <div id="container">
63 <!-- Start container -->
64 <div id="pageHeader">
65 <!-- Start page header -->
2b0d59d @petdance removed the "static/" dir
authored
66 <a href="/"><img src="/images/perl101logo.png" border="0" /></a>
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
67 <h2>Things Every Perl Programmer Should Know</h2>
68 </div><!-- End page header -->
69 <div id="sidebarContainer">
70 <!-- Start Sidebar wrapper -->
71
72 <div class="sideHeader">
73 Topics
74 </div><!-- Sidebar header -->
75 <div id="sidebar">
76 <!-- Start sidebar content -->
77 [% INCLUDE 'sidebar.tt' %]
78 </div><!-- End sidebar content -->
79 </div><!-- End sidebar wrapper -->
80 <div id="contentContainer">
81 <!-- Start main content wrapper -->
82 <div id="content">
83 <!-- Start content -->
7ae708a @petdance Starting on my POD subclass
authored
84 [% content %]
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
85 [% INCLUDE 'feedback.tt' %]
86 <div id="footer">
87 <!-- Start Footer -->
2b0d59d @petdance removed the "static/" dir
authored
88 <p>&copy; 2007-2010 Andy Lester</p>
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
89 </div><!-- End Footer -->
90 </div><!-- End content -->
91 </div><!-- End main content wrapper -->
92 </div><!-- End container -->
5c8e356 @petdance split out to a footer
authored
93 [% PROCESS footer.tt %]
2eb9f8a @petdance Manually added the tt/ dir from ttify
authored
94 </body>
95 </html>
96 [%# vi: ft=tt2html
97 %]
Something went wrong with that request. Please try again.