System and method for using a scripting language to dynamically style a cascading style sheet
Abstract
Described embodiments provide a method, computer program product, and computer system for generating, by a computing device, a data file including at least one property from a first cascading style sheet (CSS) file, the at least one property defining a scripting language object. A scripting language file may be generated, the scripting language file may include a scripting language variable for the scripting language object. A second CSS file may be generated by replacing the at least one property from the data file with the scripting language variable of the scripting language file. An element of a webpage referenced by the scripting language object may be rendered based upon, at least in part, the scripting language variable of the second CSS file.
Claims
exact text as granted — not AI-modifiedWhat is claimed is:
1 . A method comprising:
selecting, by a computing device, a file that defines a scripting language object from a first cascading style sheet (CSS) file; selecting, by the computing device, another file that includes a variable for the scripting language object; and generating, by the computing device, a second CSS file by replacement of at least one property from the file with the variable, the second CSS file configured to enable the computing device to render content referenced by the scripting language object based upon, at least in part, the variable.
2 . The method of claim 1 wherein the file includes information of the at least one property extracted from the first CSS file.
3 . The method of claim 1 wherein the file includes information of the variable in the second CSS file.
4 . The method of claim 1 further comprising determining that a value of the scripting language object has changed in the another file by checking a flag for the scripting language object.
5 . The method of claim 4 further comprising updating a style of the content based upon, at least in part, determining that the value of the scripting language object has changed in the another file.
6 . The method of claim 4 wherein determining that the value of the scripting language object has changed in the another file includes determining that the flag is set for the scripting language object.
7 . The method of claim 5 wherein the style is updated through inline style.
8 . A computer program product residing on a computer readable storage medium having a plurality of instructions stored thereon which, when executed by one or more processors, causes the one or more processors to perform operations comprising:
selecting, by a computing device, a file that defines a scripting language object from a first cascading style sheet (CSS) file; selecting, by the computing device, another file that includes a variable for the scripting language object; and generating, by the computing device, a second CSS file by replacement of at least one property from the file with the variable, the second CSS file configured to enable the computing device to render content referenced by the scripting language object based upon, at least in part, the variable.
9 . The computer program product of claim 8 wherein the file includes information of the at least one property extracted from the first CSS file.
10 . The computer program product of claim 8 wherein the file includes information of the variable in the second CSS file.
11 . The computer program product of claim 8 wherein the operations further comprise determining that a value of the scripting language object has changed in the another file by checking a flag for the scripting language object.
12 . The computer program product of claim 11 wherein the operations further comprise updating a style of the content based upon, at least in part, determining that the value of the scripting language object has changed in the another file.
13 . The computer program product of claim 11 wherein determining that the value of the scripting language object has changed in the another file includes determining that the flag is set for the scripting language object.
14 . The computer program product of claim 12 wherein the style is updated through inline style.
15 . A computing system comprising:
a memory; and at least one processor in communication with the memory, the at least one processor configured to:
select a file that defines a scripting language object from a first cascading style sheet (CSS) file;
select another file that includes a variable for the scripting language object; and
render content referenced by the scripting language object based upon, at least in part, the variable of a second CSS file generated by replacement of at least one property from the file with the variable of the another file.
16 . The computing system of claim 15 wherein the file includes information of the at least one property extracted from the first CSS file.
17 . The computing system of claim 15 wherein the file includes information of the variable in the second CSS file.
18 . The computing system of claim 15 wherein the processor is configured to determine that a value of the scripting language object has changed in the another file by checking a flag for the scripting language object.
19 . The computing system of claim 18 wherein the processor is configured to update a style of the content based upon, at least in part, determining that the value of the scripting language object has changed in the another file.
20 . The computing system of claim 18 wherein determining that the value of the scripting language object has changed in the another file includes determining that the flag is set for the scripting language object.Join the waitlist — get patent alerts
Track US2021224467A1 — get alerts on status changes and closely related new filings.
We store only your email — no account needed. See our privacy policy.