meta-tags

Angular Dynamic meta tags in head

笑着哭i 提交于 2019-12-17 20:55:04
问题 I need to insert open graph meta tags on a particular page in an angular app. These tags are different based on the news or video that the page has. I tried adding a variable to the $rootscope. This variable will be populated with the meta tags when it is relevant. Now here is my issue. As soon as this variable gets populated with the HTML string, they don't form a part of the head and are instead outputted to the body. I have searched for a day and could not find any viable solutions. Any

How to semantically tag poem text?

落花浮王杯 提交于 2019-12-17 15:49:20
问题 What to use for poem? pre blockquote code something else? 回答1: Don't use code (unless computer code is part of the poem). Don't use blockquote (unless you quote a poem). white space / line breaks: pre or br You may use the pre element. The spec gives an (informative) example: The following shows a contemporary poem that uses the pre element to preserve its unusual formatting, which forms an intrinsic part of the poem itself. <pre> maxling it is with a heart heavy that i admit loss of a feline

What's the point of 'meta viewport user-scalable=no' in the Google Maps API

爱⌒轻易说出口 提交于 2019-12-17 15:34:29
问题 I'm using the Google Maps JavaScript API V3 and the official examples always have you include this meta tag: <meta name="viewport" content="initial-scale=1.0, user-scalable=no" /> Most of the 3rd-party examples I've seen also do it. I wrote a plugin using it, though, and one of my users told me it's preventing him from being able to zoom in and out on his mobile device. I don't have a mobile device to test with, and none of my searches revealed any helpful information. So, what's the point of

Using Javascript to override or disable meta refresh tag

[亡魂溺海] 提交于 2019-12-17 06:46:21
问题 I have a website, where I am trying to use Ajax to update some stuff on the page without reloading it. However, there is a good chance that many of my users will be using mobile browsers that don't support Javascript so I am trying to design the page with meta refresh tags, that somehow work only for users without Javascript. Is there any way to do this? I tried putting the tag within a noscript element, but my primitive cell phone browser wouldn't acknowledge it. I am thinking of maybe

Is it possible to use jQuery to read meta tags

爷,独闯天下 提交于 2019-12-17 03:51:37
问题 Is it possible to use jQuery to read meta tags. If so do you know what the basic structure of the code will be, or have links to any tutorials. 回答1: Just use something like: var author = $('meta[name=author]').attr("content"); 回答2: Would this parser help you? https://github.com/fiann/jquery.ogp It parses meta OG data to JSon, so you can just use the data directly. If you prefer, you can read/write them directly using JQuery, of course. For example: $("meta[property='og:title']").attr("content

Showing Thumbnail for link in WhatsApp || og:image meta-tag doesn't work

杀马特。学长 韩版系。学妹 提交于 2019-12-17 03:47:29
问题 Tried to follow this question : Provide a picture for whatsapp link sharing I have created a simple HTML webpage with the basic Facebook metatags: <!--FACEBOOK--> <meta property="og:title" content="San Roque 2014 Pollos" /> <meta property="og:description" content="Programa de fiestas /> <meta property="og:image" content="http://pollosweb.wesped.es/programa_pollos/play.png" /> The Facebook linter validate correctly and in Facebook it shows perfect, but when I try to share by WhatsApp the image

How to start automatic download of a file in Internet Explorer?

╄→尐↘猪︶ㄣ 提交于 2019-12-17 02:27:18
问题 How do I initialize an automatic download of a file in Internet Explorer? For example, in the download page, I want the download link to appear and a message: "If you download doesn't start automatically .... etc". The download should begin shortly after the page loads. In Firefox this is easy, you just need to include a meta tag in the header, <meta http-equiv="Refresh" content="n;url"> where n is the number of seconds and url is the download URL. This does not work in Internet Explorer. How

401 Using Multiple Authentication Methods IE 10 only

♀尐吖头ヾ 提交于 2019-12-13 20:24:43
问题 I am not sure if this is more of a coding issue or server setup issue... On our production site we've run into an issue that is specific to Internet Explorer 10. I am using jQuery doing an ajax POST to a web service on the same domain and in IE10 I am getting a 401 response, IE9 works perfectly fine. I should mention that we have mirrored code in another area of our site and it works perfectly fine in IE10. The only difference between the two areas is that one is under a subdomain and the

using line breaks in meta tags

﹥>﹥吖頭↗ 提交于 2019-12-13 18:42:29
问题 I want to use line breaks in my website description meta tag. How do I do it, because if I see the source code it will still show <br/> only. Something like this I use in my code: <meta name="description" content="<?php echo $gotAlias ?><br/> abc: <?php echo $got_overallrating ?>.<br/> <a href='www.abc.com'>Visit www.abc.com</a> "> 回答1: Try "\n" instead of <br /> , e.g. <?php echo "first line\nsecond line"; ?> ; 回答2: For use in AddThis meta content tagging, the \n is ignored. So it doesn't

Preserve charset attribute of meta tag in HTML Blob?

♀尐吖头ヾ 提交于 2019-12-13 17:24:16
问题 I am generating a client-side HTML redirect like this: <!DOCTYPE html> <html lang="en"> <head> <meta charset="utf-8"> <title>Déjà vu - Wikipedia</title> <script type='text/javascript'> document.addEventListener('DOMContentLoaded', function () { var newHTML = document.createElement('html'); var newHead = document.createElement('head'); var newMeta = document.createElement('meta'); var newTitle = document.createElement('title'); newTitle.text = "Déjà vu - Wikipedia"; newMeta.httpEquiv =