Skip to content

Commit

Permalink
fix js
Browse files Browse the repository at this point in the history
  • Loading branch information
eskatos committed Mar 20, 2014
1 parent f8fcdfa commit 49a3ee2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
14 changes: 8 additions & 6 deletions cv_fr.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,17 +6,19 @@
<link href="cv_style.css" rel="stylesheet" type="text/css" />
<link href="cv_style_screen.css" media="screen" rel="stylesheet" type="text/css" />
<link href="cv_style_print.css" media="print" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.11.0.min.js"></script>
<script type="text/javascript" src="http://code.jquery.com/jquery-2.1.0.min.js"></script>
<script type="text/javascript"> //<![CDATA[
$(document).ready(function(){

// Hides geeky content and create a toggle link
$(".geeky-content").hide();
$(".geeky").prepend('<div class="geeky-button">Details</div>');
$(".geeky-button").toggle(
function() { $(this).html("Cacher"); $(this).next().slideDown("slow"); },
function() { $(this).html("Détails"); $(this).next().slideUp("slow"); } );

if(false) {
var $geeky_button = $('<a class="geeky-button">Details</a>');
$(".geeky").prepend( $geeky_button );
$(".geeky-button").click(function() {
$(this).next().slideToggle("slow");
} );
}
// Open all external links into a new window
$("a[href*='http://']:not([href*='" + location.hostname + "']),[href*='https://']:not([href*='" + location.hostname + "'])").attr("target","_blank");

Expand Down
2 changes: 1 addition & 1 deletion cv_style_screen.css
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ div.theme-item { border-color: #3E79AC; }

/* geeky content */
div.geeky { text-align: right; }
div.geeky-button {
.geeky-button {
text-align: right;
color: #3E79AC;
cursor: pointer;
Expand Down

0 comments on commit 49a3ee2

Please sign in to comment.