Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re^2: PerlMonks meets Twitter Bootstrap (copy?) (updated)

by choroba (Cardinal)
on Dec 22, 2016 at 09:36 UTC ( [id://1178345]=note: print w/replies, xml ) Need Help??


in reply to Re: PerlMonks meets Twitter Bootstrap (copy?) (updated)
in thread PerlMonks meets Twitter Bootstrap

It seems the whole buzzword.org.uk site is down (tobyink?). I tried to switch to the highlighting by blogs.perl.org, to have the code highlighted at least, but my jquery-fu is weak and I wasn't able to make it work.

*UPDATE*: It works. Here's the relevant part from my FreeNodelet:

<!-- Syntax HL --> <style> p.code { margin-top: 2px; margin-bottom: 2px; background: #08080f; } code.prettyprint { background-color: #112 !important; } </style> <script src="https://code.jquery.com/jquery-3.1.1.min.js"></script> <link rel="stylesheet" href="http://blogs.perl.org/mt/mt-static/plugin +s/GCPrettify/prettify.css" type="text/css" media="all" /> <script src="http://blogs.perl.org/mt/mt-static/plugins/GCPrettify/pre +ttify.js"></script> <script> $(document).ready(function () { $('p.code').wrap('<pre><code class="prettyprint"></code></pre>'); $('p.code br').remove(); window.prettyPrint(); }); </script>

You might need to fix some colours, e.g. like me:

span.pln { color: #eee } span.pun { color: #ffd } span.typ { color: #e4e } span.lit { color: #2dd } span.com { color: #f11 }

I also used

$('p.code').not('.pmsig *').wrap('<pre><code class="prettyprint"></cod +e></pre>');

to skip highlighting in signatures.

($q=q:Sq=~/;[c](.)(.)/;chr(-||-|5+lengthSq)`"S|oS2"`map{chr |+ord }map{substrSq`S_+|`|}3E|-|`7**2-3:)=~y+S|`+$1,++print+eval$q,q,a,

Replies are listed 'Best First'.
Re^3: PerlMonks meets Twitter Bootstrap (copy?)
by LanX (Saint) on Dec 22, 2016 at 18:02 UTC
    Hi

    Thanks!

    > It works.

    Please for clarification, I'm not sure what you did

    This code works in conjunction with what? (no time to try out)

    I was already able to copy 3 of 4 buzzword-files, so did you combine them?

    ATM only http://buzzword.org.uk/2014/pm/bootstrap.min.css is missing °

    Or is your code supposed to be a workaround replacement for bootstrap.min.css ?

    Goal: Once we've reconstructed the code-base we can load them from one perlmonks thread like the wiki-addon.

    And then other's can easily contribute forks.

    Cheers Rolf
    (addicted to the Perl Programming Language and ☆☆☆☆ :)
    Je suis Charlie!

    °) if anyone can click on it and see code, than please copy and post before it vanishes from your browser's cache

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1178345]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others wandering the Monastery: (6)
As of 2024-04-24 09:36 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found