Method and apparatus for displaying page and a computer storage medium
AssigneeTencent Technology (Shenzhen) Company Limited
InventorLin Fan
Life of this patent
Estimating the term…
Abstract
A method is provided for displaying a page. The method includes extracting, from a to-be-displayed page, page parameter information of the to-be-displayed page. The page parameter information includes at least one of a uniform resource locator (URL) of the to-be-displayed page, a type of page content, and a page domain name. The method also includes determining, according to the page parameter information of the to-be-displayed page, a display mode to display the to-be-displayed page; and displaying the to-be-displayed page according to the determined display mode.
Claims13
A method for displaying a page on a user terminal, the method comprising:
- extracting, from a uniform resource locator (URL) of a to-be-displayed page, page parameter information of the to-be-displayed page, including:
- removing a protocol header from the URL to obtain a shortened URL;
- extracting a page domain name from the shortened URL;
- extracting a storage path from the shortened URL;
- extracting a preset keyword from the shortened URL to indicate a type of page content;
- and
- including in the page parameter information at least one of the page domain name, the storage path, and the preset keyword;
- screening the page parameter information against an information set prestored on the user terminal, the information set including a correspondence between various pieces of page parameter information and a portrait mode or a landscape mode, wherein the screening includes:
- downloading the information set from a cloud server, wherein the cloud server counts a total number of users who have opened pages, counts a first number of the users displaying the pages in the landscape mode or the portrait mode, and calculates a ratio of the first number of the users to the total number of the users, and wherein upon determining the ratio exceeds a preset ratio, the cloud server extracts page parameter information of the pages and stores the page parameter information as extracted from the pages in the information set;
- determining, according to a screening result of the screening, to display the to-be-displayed page in the portrait mode or the landscape mode;
- and
- displaying the to-be-displayed page in the portrait mode or the landscape mode as determined.
An apparatus for displaying a page on a user terminal, the apparatus comprising:
- a memory storing computer program instructions;
- and a processor coupled to the memory and, when executing the computer program instructions, configured to perform:
- extracting, from a uniform resource locator (URL) of a to-be-displayed page, page parameter information of the to-be-displayed page, including:
- removing a protocol header from the URL to obtain a shortened URL;
- extracting a page domain name from the shortened URL;
- extracting a storage path from the shortened URL;
- extracting a preset keyword from the shortened URL to indicate a type of page content;
- and
- including in the page parameter information at least one of the page domain name, the storage path, and the preset keyword;
- screening the page parameter information against an information set prestored on the user terminal, the information set including a correspondence between various pieces of page parameter information and a portrait mode or a landscape mode, wherein the screening includes:
- downloading the information set from a cloud server, wherein the cloud server counts a total number of users who have opened pages, counts a first number of the users displaying the pages in the landscape mode or the portrait mode, and calculates a ratio of the first number of the users to the total number of the users, and wherein upon determining the ratio exceeds a preset ratio, the cloud server extracts page parameter information of the pages and stores the page parameter information as extracted from the pages in the information set;
- determining, according to a screening result of the screening, to display the to-be-displayed page in the portrait mode or the landscape mode;
- and
- displaying the to-be-displayed page in the portrait mode or the landscape mode as determined.
A non-transitory computer-readable storage medium storing computer program instructions executable by at least one processor to perform:
- extracting, from a uniform resource locator (URL) of a to-be-displayed page, page parameter information of the to-be-displayed page, including:
- removing a protocol header from the URL to obtain a shortened URL;
- extracting a page domain name from the shortened URL;
- extracting a storage path from the shortened URL;
- extracting a preset keyword from the shortened URL to indicate a type of page content;
- and
- including in the page parameter information at least one of the page domain name, the storage path, and the preset keyword;
- screening the page parameter information against an information set prestored on a user terminal, the information set including a correspondence between various pieces of page parameter information and a portrait mode or a landscape mode, wherein the screening includes:
- downloading the information set from a cloud server, wherein the cloud server counts a total number of users who have opened pages, counts a first number of the users displaying the pages in the landscape mode or the portrait mode, and calculates a ratio of the first number of the users to the total number of the users, and wherein upon determining the ratio exceeds a preset ratio, the cloud server extracts page parameter information of the pages and stores the page parameter information as extracted from the pages in the information set;
- determining, according to a screening result of the screening, to display the to-be-displayed page in the portrait mode or the landscape mode;
- and
- displaying the to-be-displayed page in the portrait mode or the landscape mode as determined.
Dependencies are inferred from the claim text.