Determining a high contrast display setting on a client device to process a web document
First Claim
1. A method for determining whether a high contrast setting is enabled on a computer, said method comprising:
- creating an object while processing a web document loaded into a web browser;
assigning a pre-determined color value to a displayable property of the object;
associating the object to the web document;
generating a computed color display value for the object in response to the object being associated with the web document;
comparing the pre-determined color value to the computed color display value;
generating a result based on the comparing of the pre-determined color value to the computed color display value, wherein the result indicates whether the computer is set to the high contrast setting;
storing the result in a variable; and
sending the variable to a server to process additional web documents, using the variable, before the additional web documents are loaded onto a client device.
1 Assignment
0 Petitions
Accused Products
Abstract
Described herein are processes and devices that determine a high contrast setting on a client. Some embodiments include creating an object in a web document, assigning a pre-determined color value to the object, associating the object to the web document, and generating a computed color display value for the object in response to the object being associated with the web document. Some embodiments are further directed to comparing the pre-determined color value to the computed color display value and generating a result based on the comparing of the pre-determined color value to the computed color display value, which result indicates whether the system is set to the high contrast setting. Some embodiments are further directed to storing the result in a variable; and sending the variable to a server to process additional web documents, using the variable, before the additional web documents are loaded onto the client device.
-
Citations
18 Claims
-
1. A method for determining whether a high contrast setting is enabled on a computer, said method comprising:
-
creating an object while processing a web document loaded into a web browser; assigning a pre-determined color value to a displayable property of the object; associating the object to the web document; generating a computed color display value for the object in response to the object being associated with the web document; comparing the pre-determined color value to the computed color display value; generating a result based on the comparing of the pre-determined color value to the computed color display value, wherein the result indicates whether the computer is set to the high contrast setting; storing the result in a variable; and sending the variable to a server to process additional web documents, using the variable, before the additional web documents are loaded onto a client device. - View Dependent Claims (2, 3, 4, 5, 6)
-
-
7. A computer program product for determining whether a high contrast setting is enabled on a computer, the computer program product comprising:
-
a computer readable storage medium having computer readable program code embodied therewith, the computer readable program code comprising; computer readable program code configured to create a web document object while processing a web document loaded into a web browser, assign a pre-determined color value to a displayable property of the web document object, wherein the displayable property comprises a color, associate the web document object to the web document, generate a computed color display value for the web document object in response to the web document object being associated with the web document, compare the pre-determined color value to the computed color display value, generate a result based on comparison of the pre-determined color value to the computed color display value, wherein the result indicates whether the computer is set to the high contrast setting, process one or more of the web document and other web documents based on the result, store the result in a variable, and send the variable to a server to process one or more additional web documents, using the variable, before the one or more additional web documents are loaded onto the computer. - View Dependent Claims (8, 9, 10, 11, 12, 13)
-
-
14. A system comprising:
-
one or more processors; and a high contrast mode detection module configured to, via at least one of the one or more processors, create a web document object, assign a first color value to a displayable property of the web document object, the first color value being pre-determined to be different than a second color value that a client device would use to display the web document object on the client device when the client device is in a high contrast mode, said second color value being a default high contrast color value stored on the client device, wherein the first color value comprises a color that does not have a highly contrasting color opposite and wherein the second color value comprises a color with a highly contrasting color opposite, associate the web document object with a web document, wherein association of the web document object with the web document causes the client device to generate a computed color value to use for display of the web document object in the web document, wherein the client device generates the computed color value as the first color value when the client device is not in the high contrast mode and wherein the client device generates the computed color value as the second color value when the client device is in the high contrast mode, compare the first color value to the computed color value of the web document object to determine whether the client device is in the high contrast mode, wherein comparison of the first color value of the computed color value of the web document object generates a result that corresponds to a high contrast setting value that indicates whether the high contrast mode is enabled or disabled, produce the result based, at least in part, on said comparison, and send the result to a server to process additional web documents, using the result, before the additional web documents are loaded onto the client device. - View Dependent Claims (15, 16, 17, 18)
-
Specification