SHOW:
|
|
- or go back to the newest paste.
1 | <!DOCTYPE html> | |
2 | <head> | |
3 | <title>Test1</title> | |
4 | <meta property="og:url" content="1.html" /> | |
5 | <meta property="og:type" content="article" /> | |
6 | <meta property="og:title" content="Title2" /> | |
7 | <meta property="og:description" content="How much does culture influence creative thinking?" /> | |
8 | <meta property="og:image" content="http://mydomain/og.jpg" /> | |
9 | <script | |
10 | src="https://code.jquery.com/jquery-3.3.1.min.js" | |
11 | integrity="sha256-FgpCb/KJQlLNfOu91ta32o/NMZxltwRo8QtmkMRdAu8=" | |
12 | - | $(document).ready(function(){ |
12 | + | |
13 | <script> | |
14 | - | $("head").append('<meta property="og:url" content="http://www.nytimes.com/2015/02/19/arts/international/when-great-minds-dont-think-alike.html" /><meta property="og:type" content="article" /><meta property="og:title" content="Test" /><meta property="og:description" content="How much does culture influence creative thinking?" /><meta property="og:image" content="og.jpg" />'); |
14 | + | |
15 | - | }); |
15 | + | $('meta[property="og:title"]').attr("content", "Title3"); |
16 | $('meta[property="og:url"]').attr("content", "2.html"); | |
17 | </script> | |
18 | </head> | |
19 | <body> | |
20 | Hello World | |
21 | </body> | |
22 | </html> |