This commit is contained in:
Nicolas Bally 2014-08-21 14:07:27 +02:00
parent 32e60fd8a3
commit d5715c354e
2 changed files with 34 additions and 24 deletions

View File

@ -122,7 +122,8 @@ right:15px;
color:white; color:white;
padding:1px; padding:1px;
font-family:Felt Tip Roman; font-family:"felt-tip-roman";
font-weight:normal;
#myCanvas{ #myCanvas{

View File

@ -7,11 +7,40 @@
= javascript_include_tag "application" = javascript_include_tag "application"
= csrf_meta_tag = csrf_meta_tag
<script type="text/javascript" src="//use.typekit.net/bkj8nbt.js"></script>
:javascript
try {
Typekit.load({
active: function() {
$(document).ready(function() {
if( ! $('#myCanvas').tagcanvas({
textColour : '#ffffff',
outlineThickness : 1,
depth:0.5,
lock:"xy",
initial: [0.1,-0.01],
shape:"vcylinder",
stretchX:1.5,
stretchY:0.9,
maxSpeed : 0.02,
outlineMethod : "none",
wheelZoom :false,
textFont :"felt-tip-roman" ,
textHeight : 30,
})) {
// TagCanvas failed to load
$('#myCanvasContainer').hide();
}
// your other jQuery stuff here...
});
}
})
} catch(e) {}
= stylesheet_link_tag 'application' = stylesheet_link_tag 'application'
<script type="text/javascript" src="//use.typekit.net/bkj8nbt.js"></script>
<script type="text/javascript">try{Typekit.load();}catch(e){}</script>
%body %body
#home #home
@ -268,27 +297,7 @@
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() {
if( ! $('#myCanvas').tagcanvas({
textColour : '#ffffff',
outlineThickness : 1,
depth:0.5,
lock:"xy",
initial: [0.1,-0.01],
shape:"vcylinder",
stretchX:1.5,
stretchY:0.9,
maxSpeed : 0.02,
outlineMethod : "none",
wheelZoom :false,
textFont :"Felt Tip Roman" ,
textHeight : 30,
})) {
// TagCanvas failed to load
$('#myCanvasContainer').hide();
}
// your other jQuery stuff here...
});
</script> </script>
#realisations #realisations