modif css
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
<!-- This Source Code Form is subject to the terms of the Mozilla Public
|
||||
- License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
||||
- You can obtain one at http://mozilla.org/MPL/2.0/. -->
|
||||
<!DOCTYPE html>
|
||||
<html dir="ltr" lang="und"><head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
||||
<meta charset="utf-8">
|
||||
<meta http-equiv="Content-Security-Policy" content="default-src 'none'; object-src 'none'; script-src resource: chrome:; connect-src https:; img-src https: data: blob:; style-src 'unsafe-inline';">
|
||||
<title data-l10n-id="newtab-page-title">New Tab</title>
|
||||
<link rel="icon" type="image/png" href="chrome://branding/content/icon32.png">
|
||||
<link rel="localization" href="browser/branding/brandings.ftl">
|
||||
<link rel="localization" href="browser/newtab/newtab.ftl">
|
||||
<link rel="stylesheet" href="chrome://browser/content/contentSearchUI.css">
|
||||
<link rel="stylesheet" href="resource://activity-stream/css/activity-stream.css">
|
||||
</head>
|
||||
<body class="activity-stream" style="--newtab-search-icon:url(moz-extension://bd9496a5-14e8-42c0-a21e-534a23ab55f9/favicon.ico);">
|
||||
<div id="header-asrouter-container" role="presentation"></div>
|
||||
<div id="root"><div><div class="outer-wrapper only-search"><main><div class="non-collapsible-section"><div class="search-wrapper"><div class="logo-and-wordmark"><div class="logo"></div><div class="wordmark"></div></div><div class="search-inner-wrapper"><input id="newtab-search-text" data-l10n-id="newtab-search-box-search-the-web-input" maxlength="256" type="search" autocomplete="off" aria-autocomplete="true" aria-controls="searchSuggestionTable" aria-expanded="false" placeholder="Search the Web" title="Search the Web" aria-label="Search the Web"><button id="searchSubmit" class="search-button" data-l10n-id="newtab-search-box-search-button" title="Search" aria-label="Search"></button><table id="searchSuggestionTable" class="contentSearchSuggestionTable" role="presentation" hidden=""><tr class="contentSearchHeaderRow"><td class="contentSearchHeader" id="contentSearchDefaultEngineHeader"><img src="New%20Tab_files/favicon.ico">DuckDuckGo Search</td></tr><tr class="contentSearchSuggestionsContainer"><td class="contentSearchSuggestionsContainer"><table class="contentSearchSuggestionsList" role="listbox"></table></td></tr><table class="contentSearchOneOffsTable contentSearchSuggestionsContainer" role="group"><tr class="contentSearchHeaderRow"><td class="contentSearchHeader" id="contentSearchSearchWithHeader"><label>Search with:</label><label class="contentSearchSearchWithHeaderSearchText"></label><label></label></td></tr></table><button class="contentSearchSettingsButton contentSearchHeaderRow contentSearchHeader" id="contentSearchSettingsButton" aria-selected="false">Change Search Settings</button></table></div></div></div><div class="body-wrapper on"><div class="sections-list"></div><div class="prefs-button"><button class="icon icon-settings" data-l10n-id="newtab-settings-button" title="Customize your New Tab page"></button></div></div></main></div></div></div>
|
||||
<div id="footer-asrouter-container" role="presentation"></div>
|
||||
<script src="chrome://browser/content/contentSearchUI.js"></script>
|
||||
<script src="chrome://browser/content/contentTheme.js"></script>
|
||||
<script src="resource://activity-stream/vendor/react.js"></script>
|
||||
<script src="resource://activity-stream/vendor/react-dom.js"></script>
|
||||
<script src="resource://activity-stream/vendor/prop-types.js"></script>
|
||||
<script src="resource://activity-stream/vendor/redux.js"></script>
|
||||
<script src="resource://activity-stream/vendor/react-redux.js"></script>
|
||||
<script src="resource://activity-stream/vendor/react-transition-group.js"></script>
|
||||
<script src="resource://activity-stream/data/content/activity-stream.bundle.js"></script>
|
||||
|
||||
|
||||
</body></html>
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 5.3 KiB |
File diff suppressed because it is too large
Load Diff
@@ -13,6 +13,7 @@ function click_link() {
|
||||
cat = url[2];
|
||||
project_name = url[3];
|
||||
|
||||
console.log(project_name);
|
||||
if ($this.hasClass('open')) {
|
||||
$this.removeClass('open');
|
||||
$('#item_list.'+ cat).remove();
|
||||
@@ -29,12 +30,12 @@ function click_link() {
|
||||
$(data).find('#item_list').addClass(cat).insertAfter($this);
|
||||
$this.addClass('open');
|
||||
lazy();
|
||||
},
|
||||
},
|
||||
complete: function(data) {
|
||||
// console.log('cat', cat);
|
||||
$loader.hide();
|
||||
click_img(e, $this, $href, url, page, cat, project_name);
|
||||
closeAjax();
|
||||
// console.log('cat', cat);
|
||||
$loader.hide();
|
||||
click_img(e, $this, $href, url, page, cat, project_name);
|
||||
closeAjax();
|
||||
},
|
||||
});
|
||||
}
|
||||
@@ -46,6 +47,12 @@ function click_list() {
|
||||
|
||||
$link.click(function(e) {
|
||||
$('.sidebar-right, .sidebar-right button.hamburger').removeClass('is-active');
|
||||
var idthis = $(this).attr("id");
|
||||
|
||||
var $loader = $(this).parents('#start').find('#text_figli #'+idthis+' .loader');
|
||||
|
||||
console.log('$loader',$loader);
|
||||
|
||||
e.preventDefault();
|
||||
var $this = $(this);
|
||||
$href = $this.attr("href");
|
||||
@@ -86,6 +93,8 @@ function click_list() {
|
||||
$('#item_list').remove();
|
||||
$('.open').removeClass('open');
|
||||
|
||||
$loader.css('display','inline-block');
|
||||
|
||||
$.ajax({
|
||||
url : '/' + page + '/' + cat, // La ressource ciblée
|
||||
type : 'GET', // Le type de la requête HTTP
|
||||
@@ -102,12 +111,14 @@ function click_list() {
|
||||
},
|
||||
complete: function(data) {
|
||||
// console.log('cat', cat);
|
||||
$loader.hide();
|
||||
var $link_card = $('.card > #'+project_name + ' a');
|
||||
setTimeout( function(){
|
||||
// console.log('project_name', project_name);
|
||||
// console.log('$link_card', $link_card);
|
||||
if ($link_card.hasClass('open')) {
|
||||
}else {
|
||||
|
||||
} else {
|
||||
anchor($href);
|
||||
$.ajax({
|
||||
url : '/' + page + '/' + cat + '/' + project_name, // La ressource ciblée
|
||||
@@ -200,12 +211,12 @@ function marg_item(project_name) {
|
||||
|
||||
var $item = $('.card-image#'+project_name+' #item');
|
||||
var $card = $item.parents('.card');
|
||||
var pos_card = $card.offset().left-8;
|
||||
var pos_card = $card.offset().left-16;
|
||||
|
||||
$item.css('margin-left', '-'+pos_card +'px');
|
||||
|
||||
$(window).resize(function() {
|
||||
var pos_card = $card.offset().left-8;
|
||||
var pos_card = $card.offset().left-16;
|
||||
$item.css('margin-left', '-'+pos_card +'px');
|
||||
})
|
||||
}
|
||||
@@ -300,15 +311,19 @@ function scrollTop() {
|
||||
|
||||
function imgmouse() {
|
||||
var currentMousePos = { x: 0, y: 0 };
|
||||
var $list_projets = $('.list-projets');
|
||||
var $img = $('.list-projets .img');
|
||||
|
||||
$(document).mousemove(function(event) {
|
||||
currentMousePos.x = event.pageX;
|
||||
currentMousePos.y = event.pageY;
|
||||
$list_projets.mousemove(function(e) {
|
||||
var pos = $list_projets.offset();
|
||||
|
||||
currentMousePos.x = e.pageX - pos.left ;
|
||||
currentMousePos.y = e.pageY - pos.top;
|
||||
|
||||
$img.css('left', currentMousePos.x );
|
||||
$img.css('top', currentMousePos.y );
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
function scrollreveal() {
|
||||
@@ -318,18 +333,6 @@ function scrollreveal() {
|
||||
duration: 1000,
|
||||
distance: '10px',
|
||||
});
|
||||
|
||||
var $button = $('.sidebar button');
|
||||
var $title_menu = $('.title-menu h2');
|
||||
|
||||
$button.click(function() {
|
||||
ScrollReveal().destroy($txt, {
|
||||
duration: 1000,
|
||||
distance: '10px',
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function clickmenu() {
|
||||
@@ -337,10 +340,36 @@ function clickmenu() {
|
||||
|
||||
$menu.click(function() {
|
||||
$('#text_figli').toggleClass('hidden');
|
||||
})
|
||||
$('html, body').toggleClass('hidden');
|
||||
});
|
||||
|
||||
var $list_projetsA = $('.list-projets .container a');
|
||||
|
||||
$list_projetsA.click(function() {
|
||||
$('#text_figli').toggleClass('hidden');
|
||||
$('html, body').toggleClass('hidden');
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function scrollcustom() {
|
||||
$(window).on("load",function(){
|
||||
// $(".sidebar-right").mCustomScrollbar({
|
||||
// scrollbarPosition: "outside",
|
||||
// axis:"y",
|
||||
// });
|
||||
//
|
||||
// $("body").mCustomScrollbar({
|
||||
// scrollbarPosition: "outside",
|
||||
// axis:"y",
|
||||
// });
|
||||
|
||||
});
|
||||
}
|
||||
|
||||
$(document).ready(function($){
|
||||
scrollcustom();
|
||||
scrollreveal();
|
||||
click_link();
|
||||
click_list();
|
||||
|
||||
Reference in New Issue
Block a user