safari

using sort in safari

与世无争的帅哥 提交于 2020-05-17 07:07:03
问题 I am having an issue sorting through posts by date in safari. All works as expected in Chrome. First I fetch all the posts from my API. I then fetch some posts from the facebook api. These get combined together in an array. If I post a new post, it publishes it to facebook and sends back the post to display on my website. In chrome it automatically sorts this by date and is added in the right spot. In safari, all the new facebook posts get added to the end of the array - unsorted by date.

Safari cannot load local js file. Reports cross-origin error

时光总嘲笑我的痴心妄想 提交于 2020-05-16 11:01:23
问题 I am trying to import a local js file in my index page. It works in Chrome and Firefox, but Safari is showing an error message. Blocked https://example.com/js/i18next.js from asking for credentials because it is a cross-origin request. https://example.com/js/i18next.js index.php <?php include "global-php-scripts.php"; ?> <!DOCTYPE html> <html lang="<?=$htmlLang?>"> <head> <title>mySite</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8" /> <meta

Safari cannot load local js file. Reports cross-origin error

僤鯓⒐⒋嵵緔 提交于 2020-05-16 11:01:11
问题 I am trying to import a local js file in my index page. It works in Chrome and Firefox, but Safari is showing an error message. Blocked https://example.com/js/i18next.js from asking for credentials because it is a cross-origin request. https://example.com/js/i18next.js index.php <?php include "global-php-scripts.php"; ?> <!DOCTYPE html> <html lang="<?=$htmlLang?>"> <head> <title>mySite</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8" /> <meta

Safari cannot load local js file. Reports cross-origin error

谁说胖子不能爱 提交于 2020-05-16 10:59:29
问题 I am trying to import a local js file in my index page. It works in Chrome and Firefox, but Safari is showing an error message. Blocked https://example.com/js/i18next.js from asking for credentials because it is a cross-origin request. https://example.com/js/i18next.js index.php <?php include "global-php-scripts.php"; ?> <!DOCTYPE html> <html lang="<?=$htmlLang?>"> <head> <title>mySite</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta charset="UTF-8" /> <meta

flex:1 taking only the 100vh height on safari browser instead of full content height

ε祈祈猫儿з 提交于 2020-05-15 07:42:51
问题 I am having the below structure of html: <div class="root"> <div class="page"> <div class="page_left"></div> <div class="page_right"> <div class="content"> <div class="content_left"> <p> content here </p> </div> <div class="content_right"></div> </div> </div> </div> </div> Everything is fine except on Safari browser. The content is not taking the complete height of the <p> if the text inside is greater than 100vh. Even though it has been set to flex:1 it only takes 100vh height. But as per

flex:1 taking only the 100vh height on safari browser instead of full content height

喜夏-厌秋 提交于 2020-05-15 07:39:12
问题 I am having the below structure of html: <div class="root"> <div class="page"> <div class="page_left"></div> <div class="page_right"> <div class="content"> <div class="content_left"> <p> content here </p> </div> <div class="content_right"></div> </div> </div> </div> </div> Everything is fine except on Safari browser. The content is not taking the complete height of the <p> if the text inside is greater than 100vh. Even though it has been set to flex:1 it only takes 100vh height. But as per

flex:1 taking only the 100vh height on safari browser instead of full content height

≡放荡痞女 提交于 2020-05-15 07:38:36
问题 I am having the below structure of html: <div class="root"> <div class="page"> <div class="page_left"></div> <div class="page_right"> <div class="content"> <div class="content_left"> <p> content here </p> </div> <div class="content_right"></div> </div> </div> </div> </div> Everything is fine except on Safari browser. The content is not taking the complete height of the <p> if the text inside is greater than 100vh. Even though it has been set to flex:1 it only takes 100vh height. But as per

Monitor web sites visited using Internet Explorer, Opera, Chrome, Firefox and Safari in Python

谁说胖子不能爱 提交于 2020-05-13 23:34:29
问题 I am working on a project for work and have seemed to run into a small problem. The project is a similar program to Web Nanny, but branded to my client's company. It will have features such as website blocking by URL, keyword and web activity logs. I would also need it to be able to "pause" downloads until an acceptable username and password is entered. I found a script to monitor the URL visited in Internet Explorer (shown below), but it seems to slow the browser down considerably. I have

Safari 10.1: XMLHttpRequest with query parameters cannot load due to access control checks

不羁岁月 提交于 2020-05-10 03:49:27
问题 When trying a CORS request on Safari 10.1 , on an URL which includes query parameters (e.g. https://example.com/api?v=1), Safari says XMLHttpRequest cannot load due to access control checks Chrome/Firefox works fine. On requests from the page without the ?v=1 , Safari works fine too. I tried changing the server response header from Access-Control-Allow-Origin: https://example.com to Access-Control-Allow-Origin: https://example.com/api?v=1 but that breaks Chrome. Any suggestions? 回答1: Trying

只要网速够快,小视频看完一个删一个,任性!Python爬取小视频

被刻印的时光 ゝ 提交于 2020-05-09 09:42:50
前言 yy平台,直播界的先驱,有很多主播会把一些自己的直播精彩看点上传到该平台下的小视频栏目中 今天带大家爬取yy小视频栏目中所有的小视频 课程知识点: 1、动态数据抓包演示 2、json数据解析方法 3、视频数据保存 环境介绍: python 3.6 pycharm requests 爬虫的一般思路: 1、分析目标网页,确定爬取的url路径,headers参数 2、发送请求 -- requests 模拟浏览器发送请求,获取响应数据 3、解析数据 4、保存数据 导入工具 import requests import re import pprint 分析目标网页,确定爬取的url路径,headers参数 url地址: 参数 url = ' https://api-tinyvideo-web.yy.com/home/tinyvideos? ' headers = { ' user-agent ' : ' Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.117 Safari/537.36 ' , } param = { ' data ' : ' {"uid":0,"page":1,"pageSize":10} ' , } 发送请求 --