Custo totem ++
* parralax.js: refactoring * drummer-652345_1280.xxs.jpg: * musician-923526_1280.xxs.jpg: * live-concert-388160_1280.xxs.jpg: totem style * Makefile: cleaner code * style.css: -> Totem * BlogsController.cs: Fixes edition validation * App.master: externalize the parralax javascript code, finishes the merge from yavsc * UserPosts.aspx: Affiche "pas de contenu" quand aucun post n'est à afficher * Web.csproj: Totem images * instdbws.sql: Header images
This commit is contained in:
parent
8042031871
commit
40a49f5284
14 changed files with 177 additions and 168 deletions
|
|
@ -15,64 +15,9 @@
|
|||
<link rel="icon" type="image/png" href="/favicon.png?v=3" />
|
||||
<script src="<%=Url.Content("~/Scripts/jquery-2.1.4.min.js")%>"></script>
|
||||
<script src="<%=Url.Content("~/Scripts/jquery-ui-1.11.4.js")%>"></script>
|
||||
<script src="<%=Url.Content("~/Scripts/parralax.js")%>"></script>
|
||||
<script type="text/javascript">
|
||||
var apiBaseUrl = '<%=Url.Content(Yavsc.WebApiConfig.UrlPrefixRelative)%>';
|
||||
|
||||
|
||||
|
||||
$(document).ready(function(){
|
||||
var $window = $(window);
|
||||
|
||||
$('[data-type="background"]').each(function(){
|
||||
var $bgobj = $(this); // assigning the object
|
||||
// get the initial background position, assumes a "X% Yem" ?
|
||||
var orgpos = $bgobj.css('backgroundPosition');
|
||||
var bgpos = orgpos.split(" ");
|
||||
|
||||
var bgposx = bgpos[0];
|
||||
var bgposy = bgpos[1];
|
||||
if (/%$/.test(bgposx)){
|
||||
bgposx = bgposx.substr(0,bgposx.length-1);
|
||||
$bgobj.attr('orgbgpxu','% ');
|
||||
}
|
||||
else if (/em$/.test(bgposx)){
|
||||
bgposx = bgposx.substr(0,bgposx.length-2);
|
||||
$bgobj.attr('orgbgpxu','em ');
|
||||
}
|
||||
else if (/px$/.test(bgposx)){
|
||||
bgposx = bgposx.substr(0,bgposx.length-2);
|
||||
$bgobj.attr('orgbgpxu','px ');
|
||||
}
|
||||
else { $bgobj.attr('orgbgpxu','px '); }
|
||||
|
||||
if (/%$/.test(bgposy)){
|
||||
bgposy = bgposy.substr(0,bgposy.length-1);
|
||||
$bgobj.attr('orgbgpyu','% ');
|
||||
}
|
||||
else if (/em$/.test(bgposy)){
|
||||
bgposy = bgposy.substr(0,bgposy.length-2);
|
||||
$bgobj.attr('orgbgpyu','em ');
|
||||
}
|
||||
else if (/px$/.test(bgposy)){
|
||||
bgposy = bgposy.substr(0,bgposy.length-2);
|
||||
$bgobj.attr('orgbgpyu','px ');
|
||||
}
|
||||
else { $bgobj.attr('orgbgpyu','px '); }
|
||||
$bgobj.attr('orgbgpx',parseInt(bgposx));
|
||||
$bgobj.attr('orgbgpy',parseInt(bgposy));
|
||||
|
||||
$(window).scroll(function() {
|
||||
var speed = $bgobj.data('speed');
|
||||
var xPos = $bgobj.attr('orgbgpx') - Math.round($window.scrollLeft() / speed);
|
||||
var yPos = $bgobj.attr('orgbgpy') - Math.round($window.scrollTop() / speed);
|
||||
// Put together our final background position
|
||||
var coords = '' + xPos + $bgobj.attr('orgbgpxu') + yPos + $bgobj.attr('orgbgpyu');
|
||||
// Move the background
|
||||
$bgobj.css({ backgroundPosition: coords });
|
||||
// console.log($bgobj.get()[0].localName+' backgroundPosition: '+coords);
|
||||
});
|
||||
});
|
||||
});
|
||||
</script>
|
||||
<script src="/Scripts/yavsc.js"></script>
|
||||
<asp:ContentPlaceHolder id="head" runat="server">
|
||||
|
|
@ -80,79 +25,43 @@ $(document).ready(function(){
|
|||
<link href='http://fonts.googleapis.com/css?family=Dancing+Script:400,700' rel='stylesheet' type='text/css'/>
|
||||
</head>
|
||||
<body>
|
||||
<<<<<<< HEAD
|
||||
<header data-type="background" data-speed="10" >
|
||||
=======
|
||||
<header data-type="background" data-speed="8" >
|
||||
>>>>>>> bdae927f67893f93bc3681bb9c7fa08d0ca04a93
|
||||
|
||||
<asp:ContentPlaceHolder ID="overHeaderOne" runat="server">
|
||||
|
||||
<h1><a href="<%= Html.Encode(Request.Url.AbsoluteUri.ToString()) %>"> <%=ViewState["orgtitle"]%> </a>
|
||||
<h1><a href="<%= Html.Encode(Request.Url.AbsoluteUri.ToString()) %>">
|
||||
<%=ViewState["orgtitle"]%></a>
|
||||
<span> -
|
||||
<a href="<%= Url.Content("~/") %>"><%= YavscHelpers.SiteName %></a>
|
||||
</span></h1>
|
||||
|
||||
</asp:ContentPlaceHolder>
|
||||
|
||||
|
||||
<asp:ContentPlaceHolder ID="header" runat="server"></asp:ContentPlaceHolder>
|
||||
<div id="error"><%= (ViewData["Error"]!=null)? Html.Encode(ViewData["Error"]) : "" %></div>
|
||||
<div id="message"><%= Html.Encode(ViewData["Message"]) %></div>
|
||||
|
||||
</header>
|
||||
|
||||
<<<<<<< HEAD
|
||||
<nav data-type="background" data-speed="10" data-emheight="10" data-posx="0" data-posy="11" >
|
||||
=======
|
||||
<nav data-type="background" data-speed="2">
|
||||
>>>>>>> bdae927f67893f93bc3681bb9c7fa08d0ca04a93
|
||||
<% if (Membership.GetUser()==null) { %>
|
||||
<a href="<%= Url.Content("~/Account/Login/?returnUrl=") + Url.Encode( Request.Url.PathAndQuery )%>" >
|
||||
<div class="menuitem">
|
||||
<<<<<<< HEAD
|
||||
<%= Html.ActionLink("Authentification", "Login", "Account", new { returnUrl=Request.Url.PathAndQuery }, new { accesskey = "L" } ) %>
|
||||
<div class="hint">Pour pouvoir publier, facturer</div>
|
||||
</div>
|
||||
<% } else { %><div class="menuitem">
|
||||
<a href="/Blog/<%= HttpContext.Current.User.Identity.Name%>" accesskey = "B" >
|
||||
<img src="<%=Html.AvatarUrl(HttpContext.Current.User.Identity.Name)%>" alt="vos billets" class="iconsmall" /></a>
|
||||
<div class="hint">Vos billets</div>
|
||||
=======
|
||||
<i class="fa fa-sign-in"></i> Connexion
|
||||
<div class="hint">Pour pouvoir publier, facturer</div>
|
||||
>>>>>>> bdae927f67893f93bc3681bb9c7fa08d0ca04a93
|
||||
</div>
|
||||
</a>
|
||||
<% } else { %>
|
||||
<a href="/Blog/<%= HttpContext.Current.User.Identity.Name%>" accesskey = "B" >
|
||||
<div class="menuitem">
|
||||
<<<<<<< HEAD
|
||||
<%= Html.ActionLink(HttpContext.Current.User.Identity.Name, "Profile", "Account", new { id = HttpContext.Current.User.Identity.Name }, new { accesskey = "P" } ) %>
|
||||
<div class="hint"> Édition de votre profile </div></div>
|
||||
|
||||
<div class="menuitem">
|
||||
<a href="/Blogs/Post" accesskey="P"><u>P</u>oster</a>
|
||||
<div class="hint">
|
||||
Édition d'un nouveau billet </div></div>
|
||||
<div class="menuitem">
|
||||
<%= Html.ActionLink( "Deconnexion", "Logout", "Account", new { returnUrl=Request.Url.PathAndQuery }, new { accesskey = "L" }) %>
|
||||
=======
|
||||
<img src="<%=Html.AvatarUrl(HttpContext.Current.User.Identity.Name)%>" alt="vos billets" class="iconsmall" />
|
||||
<div class="hint">Vos billets</div>
|
||||
</div>
|
||||
</a>
|
||||
<a href="<%= Url.Content("~/Account/Profile/" + HttpContext.Current.User.Identity.Name) %>" accesskey="L" class="menuitem">
|
||||
<i class="fa fa-user"></i> <%= HttpContext.Current.User.Identity.Name %>
|
||||
<div class="hint"> Édition de votre profile </div></a>
|
||||
<i class="fa fa-user"><%= HttpContext.Current.User.Identity.Name %>
|
||||
<div class="hint"> Édition de votre profile </div></i>
|
||||
</a>
|
||||
<a href="/Blogs/Post" accesskey="P" class="menuitem">
|
||||
<i class="fa fa-pencil"></i>
|
||||
<u>P</u>oster
|
||||
<div class="hint">Édition d'un nouveau billet </div></a>
|
||||
<i class="fa fa-pencil"><u>P</u>oster
|
||||
<span class="hint">Édition d'un nouveau billet </span></i>
|
||||
</a>
|
||||
|
||||
<a href="<%= Url.Content( "~/Account/Logout/?returnUrl=")+Url.Encode(Request.Url.PathAndQuery)%>" accesskey = "P" class="menuitem">
|
||||
<i class="fa fa-sign-out"></i>Deconnexion</a>
|
||||
>>>>>>> bdae927f67893f93bc3681bb9c7fa08d0ca04a93
|
||||
<i class="fa fa-sign-out">Deconnexion</i></a>
|
||||
<% } %>
|
||||
</nav>
|
||||
<main data-type="background" data-speed="10" data-emheight="10" data-posx="0" data-posy="22" >
|
||||
|
|
@ -163,43 +72,22 @@ $(document).ready(function(){
|
|||
</main>
|
||||
<asp:ContentPlaceHolder ID="MASContent" runat="server">
|
||||
</asp:ContentPlaceHolder>
|
||||
|
||||
<<<<<<< HEAD
|
||||
<footer data-type="background" data-speed="10" >
|
||||
|
||||
<p id="copyr">
|
||||
<footer data-type="background" data-speed="2" >
|
||||
<div id="copyr">
|
||||
© 2012 Totem Production. Tous droits réservés.
|
||||
</div>
|
||||
<p>
|
||||
<%= Html.ActionLink("Formulaire de contact","Contact","Home") %>
|
||||
</p>
|
||||
<p>
|
||||
<a href="https://fr-fr.facebook.com/Brahms.Totem.officiel" ><img src="/images/facebook.png" alt="facebook"/></a>
|
||||
<a href="http://twitter.com/TotemOfficiel"><img src="/images/twiter.png" alt="twiter"/></a>
|
||||
</p>
|
||||
|
||||
<% #if !DEBUG %>
|
||||
<script src="https://apis.google.com/js/platform.js" defer>
|
||||
{lang: 'fr'}
|
||||
</script>
|
||||
<div class="g-plusone" data-annotation="inline" data-width="230"></div>
|
||||
<% #else %>
|
||||
<p><i>(Version de développement, G+1 desactivé)</i></p>
|
||||
<% #endif %>
|
||||
|
||||
=======
|
||||
<footer data-type="background" data-speed="2">
|
||||
<div >
|
||||
<%= Html.ActionLink("Formulaire de contact","Contact","Home",null, new { @class="thanks" }) %>
|
||||
<% foreach ( Link link in Html.Thanks()) { %>
|
||||
<a class="thanks" href="<%=link.Url%>"><% if (link.Image !=null) {
|
||||
%><img src="<%= link.Image %>" alt="<%= link.Text %>"/></a>
|
||||
<% } else { %>
|
||||
<a class="thanks" href="<%=link.Url%>"><%= link.Text %></a>
|
||||
<% }} %>
|
||||
<div id="gspacer"><div class="g-plusone" data-annotation="inline" data-width="170"></div>
|
||||
</div>
|
||||
<script src="https://apis.google.com/js/platform.js" defer>
|
||||
{lang: 'fr'}
|
||||
</script>
|
||||
<div id="gspacer"><div class="g-plusone" data-annotation="inline" data-width="170"></div></div>
|
||||
>>>>>>> bdae927f67893f93bc3681bb9c7fa08d0ca04a93
|
||||
</footer>
|
||||
</footer>
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue