Post by Shaliza on Mar 24, 2020 15:08:30 GMT -8
Hello,
I have a question about being able to scroll on the drop down font menu on the Quick Reply and thread replies. For the past two weeks I can't seem to be able to scroll on the font menu and this is happening on all my themes, so I think it might be an issue with the Global Header.
This is the coding that I currently have on my Global Header:
Any help is greatly appreciated. Thank you!
I have a question about being able to scroll on the drop down font menu on the Quick Reply and thread replies. For the past two weeks I can't seem to be able to scroll on the font menu and this is happening on all my themes, so I think it might be an issue with the Global Header.
This is the coding that I currently have on my Global Header:
<link href='http://fonts.googleapis.com/css?family=Acme|Allerta+Stencil|Almendra|Almendra+Display|Amethysta|Amita|Architects+Daughter|Artifika|Asap|Atma|Berkshire+Swash|Bree+Serif|Charm|Cookie|Courgette|Crafty+Girls|Crimson+Text|Croissant+One|Delius+Swash+Caps|Dancing+Script|Eagle+Lake|EB+Garamond|Elsie|Elsie+Swash+Caps|Fredericka+the+Great|Finger+Paint|Flamenco|Fresca|Gabriela|Great+Vibes|Griffy|Handlee|Happy+Monkey|Henny+Penny|Homemade+Apple|Indie+Flower|Jacques+Francois+Shadow|Julee|Just+Another+Hand|Lobster|Lucida+Calligraphy|Macondo+Swash+Caps|Medieval+Sharp|Merienda+One|Merriweather|Metamorphous|Michroma|Miltonian+Tattoo|Monserrat+Alternates|Mountains+of+Christmas|Niconne|Oldenburg|Pacifico|Paprika|Papyrus|Parisienne|Petite+Formal+Script|Poiret+One|Rancho|Rouge+Script|Satisfy|Short+Stack|Sirin+Stencil|Sofadi+One|Sofia|Spirax|The+Girl+Next+Door|Unkempt|Vast+Shadow|Yatra+One|Yellowtail' rel='stylesheet' type='text/css'/>
<script type="text/javascript">
/* Add Google Webfonts to Font Picker (GLOBAL HEADER) Nov 20, 2013 */
(function(){
var gwf = {"plugin": proboards.plugin._plugins["google_web_fonts"], "fonts":[], "p":$.ui.wysiwyg.prototype}
if(gwf.plugin){
$.each(gwf.plugin.settings.fonts, function(){
gwf.fonts.push(this.name.replace(/\s/g,"+") + (this.weights.length?":"+this.weights:"") );
})
}
$('link[href*="fonts.googleapis.com"]')
.each(function(i,e){
gwf.fonts = gwf.fonts.concat($(this).attr('href').split(/\?family=/)[1].split(/\|/));
})
if(gwf.fonts.length){
var wcreate = gwf.p._create
gwf.p._create = function(){
if(proboards.dataHash.css_wysiwyg_style){
proboards.dataHash.css_wysiwyg_style += '<link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=' + gwf.fonts.join('|').replace(/\s/g,"+") + '" />';
}
return wcreate.apply(this, arguments)
}
var menu = gwf.p._getFontNameMenu;
gwf.p._getFontNameMenu = function(){
var ret = menu.apply(this,arguments);
$.each(gwf.fonts, function(j,f){
var fontName = f.split(/:/)[0];
ret.menu.append(
$('<li></li>').addClass(fontName.replace(/\+/g,"_"))
.append('<a style="font-family:' + fontName.replace(/\+/g," ") + '">'+fontName.replace(/\+/g," ")+'</a>')
)
})
return ret;
}
}
})()
</script>
<script type="text/javascript">
var message = "";
var day = new Date();
var hr = day.getHours();
if (hr == 1) {message = "Do you ever sleep,";}
if (hr == 2) {message = "Do you ever sleep,";}
if (hr == 3) {message = "Are you a vampire,";}
if (hr == 4) {message = "So you're up early or late,";}
if (hr == 5) {message = "You know the sun ain't up yet,";}
if (hr == 6) {message = "You're up early,";}
if ((hr == 7) || (hr == 8) || (hr == 9)) {message = "Good Morning,";}
if (hr == 10) {message = "Time for a morning break,";}
if (hr == 11) {message = "Good morning,";}
if (hr == 12) {message = "Don't forget to grab lunch,";}
if (hr == 13) {message = "Good afternoon,";}
if (hr == 14) {message = "Take a break and stretch,";}
if ((hr == 15) || (hr == 16)) {message = "Good Afternoon,";}
if ((hr == 17) || (hr == 18) || (hr == 19) || (hr == 20) || (hr == 21) || (hr == 22)) {message = "Good Evening,";}
if (hr == 23) {message = "Wow you're up late,";}
if (hr == 0) {message = "Psst, it's past midnight,";}
$('.cust_greet').html(message);
</script>
<script type="text/javascript">
$(document).ready(function(){
var navTreeTop = $('#navigation-tree').offset().top + $('#navigation-tree').height();
$(window).scroll(function(){
if($(window).scrollTop() > navTreeTop && !$('#navigation-placeholder').length){
$('#navigation-tree').before('<div id="navigation-placeholder"></div>').insertBefore('.container.quick-reply');
$('#navigation-placeholder').height($('#navigation-tree').height()).css('margin-bottom',$('#navigation-tree').css('margin-bottom'));
} else if($(window).scrollTop() < navTreeTop && $('#navigation-placeholder').length) {
$('#navigation-tree').insertAfter('#navigation-placeholder');
$('#navigation-placeholder').remove();
}
});
});
</script>
Any help is greatly appreciated. Thank you!