Index: head/en_US.ISO8859-1/htdocs/layout/Makefile =================================================================== --- head/en_US.ISO8859-1/htdocs/layout/Makefile (revision 51887) +++ head/en_US.ISO8859-1/htdocs/layout/Makefile (revision 51888) @@ -1,13 +1,14 @@ # $FreeBSD$ .if exists(../Makefile.conf) .include "../Makefile.conf" .endif .if exists(../Makefile.inc) .include "../Makefile.inc" .endif SUBDIR= css SUBDIR+= images +SUBDIR+= js .include "${DOC_PREFIX}/share/mk/web.site.mk" Index: head/en_US.ISO8859-1/htdocs/layout/js/google.js =================================================================== --- head/en_US.ISO8859-1/htdocs/layout/js/google.js (nonexistent) +++ head/en_US.ISO8859-1/htdocs/layout/js/google.js (revision 51888) @@ -0,0 +1,52 @@ +/* $FreeBSD$ */ + +/* + * Please do not commit to this file without receiving review from + * webstats@FreeBSD.org. + */ + +/* Teach jslint the appropriate style rules. */ +/*jslint browser:true*/ + +var enable_ga = true; +var allow_track = true; + +var h = document.location.hostname; +/* + * Check that the hosting domain is actually a FreeBSD.org domain, so + * we don't accidentally obtain data from mirrors. + */ +var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)$/i; + +if (typeof navigator.doNotTrack !== "undefined" && (navigator.doNotTrack == "yes" || navigator.doNotTrack == "1")) { + allow_track = false; +} + +if (enable_ga && allow_track && fbsdregex.test(h)) { + var _gaq = _gaq || []; + _gaq.push(['_setAccount', 'UA-22767463-1']); + _gaq.push(['_setDomainName', 'freebsd.org']); + _gaq.push(['_setAllowHash', false]); + _gaq.push (['_gat._anonymizeIp']); + + /* + * If we ever want to track sites other than FreeBSD.org, + * uncomment the next line. + */ + //_gaq.push(['_setAllowLinker', true]); + // This is what we track + _gaq.push(['_trackPageview']); + _gaq.push(['_trackPageLoadTime']); + + ( function() { + var ga = document.createElement('script'); + ga.type = 'text/javascript'; + ga.async = true; + ga.src = 'https://ssl.google-analytics.com/ga.js'; + var s = document.getElementsByTagName('script')[0]; + s.parentNode.insertBefore(ga, s); + + })(); + +} + Property changes on: head/en_US.ISO8859-1/htdocs/layout/js/google.js ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/en_US.ISO8859-1/htdocs/layout/js/Makefile =================================================================== --- head/en_US.ISO8859-1/htdocs/layout/js/Makefile (nonexistent) +++ head/en_US.ISO8859-1/htdocs/layout/js/Makefile (revision 51888) @@ -0,0 +1,12 @@ +# $FreeBSD$ + +.if exists(../Makefile.conf) +.include "../Makefile.conf" +.endif +.if exists(../Makefile.inc) +.include "../Makefile.inc" +.endif + +DATA= google.js + +.include "${DOC_PREFIX}/share/mk/web.site.mk" Property changes on: head/en_US.ISO8859-1/htdocs/layout/js/Makefile ___________________________________________________________________ Added: svn:keywords ## -0,0 +1 ## +FreeBSD=%H \ No newline at end of property Index: head/share/xml/header.ent =================================================================== --- head/share/xml/header.ent (revision 51887) +++ head/share/xml/header.ent (revision 51888) @@ -1,236 +1,213 @@ '> '> Site Map | Legal Notices | © 1995–2018 The FreeBSD Project. All rights reserved.'> home   |   contact   |   legal   |   ©right;'> FreeBSD Home Page'> - -var allow_track = true; var h = document.location.hostname; -var fbsdregex = /((docs|security|svnweb|wiki|www)\.freebsd\.org|google\.com)$/i; - -if (typeof navigator.doNotTrack !== 'undefined' && (navigator.doNotTrack == '1')) { - allow_track = false; -} -if (allow_track && fbsdregex.test(h)) { -(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start': -new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0], -j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src= -'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f); -})(window,document,'script','dataLayer','GTM-PXRWZVR');} -"> - -'> +'> ]]> - Header And Logo'> FreeBSD '>
.
Donate to FreeBSD
.
'>   '> '> Site Navigation'> '> Peripheral Links'> '> Skip site navigation (1) Skip section navigation (2) '> &header2.topnav.label; &header2.topnav; '> This document describes how to build and update the FreeBSD Web pages from the Subversion repository by hand.

'> Index: head/share/xml/xhtml.xsl =================================================================== --- head/share/xml/xhtml.xsl (revision 51887) +++ head/share/xml/xhtml.xsl (revision 51888) @@ -1,167 +1,166 @@ <xsl:value-of select="$title" /> &header1.googlejs; - &header1.googleiframe;
&header2;
&nav.about; &nav.community; &nav.developers; &nav.docs; &nav.download; &nav.gnome; &nav.ports; &nav.support;

< mailto: > ©right;
&lastmod;