Skip to main content

City of Berkeley Rent Board

Citation
City of Berkeley Rent Board
Jurisdiction
Berkeley (municipal)
Source
Official source

Full Text

1,528 chars
THEME DEBUG
THEME HOOK: 'field'
FILE NAME SUGGESTIONS:
▪️ field--node--body--basic--full.html.twig
▪️ field--block-content--body--basic.html.twig
▪️ field--block-content--body.html.twig
▪️ field--block-content--basic.html.twig
▪️ field--body.html.twig
▪️ field--text-with-summary.html.twig
✅ field.html.twig

💡 BEGIN CUSTOM TEMPLATE OUTPUT from 'themes/custom/berkeley_zurb/templates/field/field.html.twig'

<h2>Translate this page</h2> Per CR #2127 and SR #174811, Google Translate dropdown moves from limited access on ContentPrint.aspx to full site access on GlobalSiteHeader.ascx (EYang, Jul 2016)

var _googleTranslateDisclaimerWindow;

function googleTranslateElementInit() {
new google.translate.TranslateElement({ pageLanguage: 'en', layout: google.translate.TranslateElement.FloatPosition.BOTTOM_RIGHT, gaTrack: true, gaId: 'UA-6633858-1' }, 'google_translate_element');

// Two jQuery calls needed to remove 'powered by Google' text:
// * source = http://stackoverflow.com/questions/12243818/adding-google-translate-to-a-web-site
jQuery('.goog-logo-link').css('display', 'none');
jQuery('.goog-te-gadget').css('font-size', '0');
}

function googleTranslateDisclaimerOpenWindow(url) {
// Purpose: wrapper routine for opening the Google Translate Disclaimer
// as popup window.

//get position coordinates for image window to popup at...

var x = 0
var y = 0;
if (document.all) {
x = window.screenTop + 100;
y = window.screenLeft + 100;
}
else if (document.layers) {
x = window.screenX + 100;
y = window.screenY + 100;
}