⌈⌋ branch:  freshcode


Check-in [fcd926fc7e]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

Overview
Comment:Move JS functionality out of template/header, to prepare for tags-editing
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk
Files: files | file ages | folders
SHA1: fcd926fc7eae83461cfc244e5fb235f7a0f5e1d8
User & Date: mario 2014-07-11 12:52:28
Context
2014-07-11
16:00
Introduce search/ function. check-in: 92d96d21cf user: mario tags: trunk
12:52
Move JS functionality out of template/header, to prepare for tags-editing check-in: fcd926fc7e user: mario tags: trunk
10:40
Moved projects_ and index_ output into template/ Made pagination() reusable into aux.php check-in: 5cc3693148 user: mario tags: trunk
Changes
Hide Diffs Unified Diffs Ignore Whitespace Patch

Added gimmicks.js.























































>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
/**
 * api: jquery
 * title: UI behaviour
 * description: Well, just client-side interface features
 * version: 0.2
 * depends: jquery-ui
 *
 * 
 *
 */


// DOM ready
$(function(){

    // Make frontpage #main .project descriptions expandable, by undoing .trimmed; animatedly
    $(".project .trimmed").one("click", function(){  
        $(this).animate({"max-height": "20em"});
    });
    
    // Likewise for compacted news feeds in #sidebar
    $(".article-links.trimmed").one("click", function(){
        $(this).toggleClass("trimmed");
    });

});

Changes to template/header.php.

2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<html>
<head> 
    <title>freshcode.club</title>
    <meta name=version content=0.4.5>
    <meta charset=UTF-8>
    <link rel=stylesheet href="/freshcode.css?0.5.6">
    <link rel="shortcut icon" href="/img/changes.png">
    <base href="http://<?= HTTP_HOST ?>/">
    <script src="http://ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>
    <script>
       $(function(){
          $(".project .trimmed").one("click", function(){  
              $(this).animate({"max-height": "20em"});
          });
          $(".article-links.trimmed").one("click", function(){
              $(this).toggleClass("trimmed");
          });
       });
    </script>
<?php if (isset($header_add)) { print $header_add . "\n"; } ?>
</head>
<body>

<nav id=topbar>
Open source community software release tracking. <small style="color:#9c7">[0.4.5 alpha]</small>
<span style=float:right>
<a href="//freshmeat.club/">freshmeat.club</a> |
<a href="//freecode.club/">freecode.club</a> |
<b><a href="//freshcode.club/">freshcode.club</a></b>
</span>
</nav>








|
|
<
<
<
<
<
<
<
<
<
|





|







2
3
4
5
6
7
8
9
10









11
12
13
14
15
16
17
18
19
20
21
22
23
24
<html>
<head> 
    <title>freshcode.club</title>
    <meta name=version content=0.4.5>
    <meta charset=UTF-8>
    <link rel=stylesheet href="/freshcode.css?0.5.6">
    <link rel="shortcut icon" href="/img/changes.png">
    <base href="//<?= HTTP_HOST ?>/">
    <script src="//ajax.googleapis.com/ajax/libs/jquery/2.1.1/jquery.min.js"></script>









    <script src="/gimmicks.js"></script>
<?php if (isset($header_add)) { print $header_add . "\n"; } ?>
</head>
<body>

<nav id=topbar>
Open source community software release tracking. <small style="color:#9c7">[0.4.7 alpha]</small>
<span style=float:right>
<a href="//freshmeat.club/">freshmeat.club</a> |
<a href="//freecode.club/">freecode.club</a> |
<b><a href="//freshcode.club/">freshcode.club</a></b>
</span>
</nav>