WO2019114133A1 - Method and apparatus for altering color of editing page content, terminal, and storage medium - Google Patents

Method and apparatus for altering color of editing page content, terminal, and storage medium Download PDF

Info

Publication number
WO2019114133A1
WO2019114133A1 PCT/CN2018/077102 CN2018077102W WO2019114133A1 WO 2019114133 A1 WO2019114133 A1 WO 2019114133A1 CN 2018077102 W CN2018077102 W CN 2018077102W WO 2019114133 A1 WO2019114133 A1 WO 2019114133A1
Authority
WO
WIPO (PCT)
Prior art keywords
color
parameter
content
courseware
online editing
Prior art date
Application number
PCT/CN2018/077102
Other languages
French (fr)
Chinese (zh)
Inventor
利进雄
Original Assignee
平安科技(深圳)有限公司
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by 平安科技(深圳)有限公司 filed Critical 平安科技(深圳)有限公司
Publication of WO2019114133A1 publication Critical patent/WO2019114133A1/en

Links

Images

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0484Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range
    • G06F3/04845Interaction techniques based on graphical user interfaces [GUI] for the control of specific functions or operations, e.g. selecting or manipulating an object, an image or a displayed text element, setting a parameter value or selecting a range for image manipulation, e.g. dragging, rotation, expansion or change of colour
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F3/00Input arrangements for transferring data to be processed into a form capable of being handled by the computer; Output arrangements for transferring data from processing unit to output unit, e.g. interface arrangements
    • G06F3/01Input arrangements or combined input and output arrangements for interaction between user and computer
    • G06F3/048Interaction techniques based on graphical user interfaces [GUI]
    • G06F3/0481Interaction techniques based on graphical user interfaces [GUI] based on specific properties of the displayed interaction object or a metaphor-based environment, e.g. interaction with desktop elements like windows or icons, or assisted by a cursor's changing behaviour or appearance

Definitions

  • the present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for modifying a content color of an edit page.
  • the courseware online editing page needs to set the content in the courseware to a different color, but in the traditional online editing process, only a preset limited number of colors are provided. The choice, the limited number of colors, reduces the color mark accuracy of the edit content in the online editing page of the courseware.
  • an edit page content color modification method is provided.
  • a method for modifying the color of an edit page content including:
  • An editing page content color modification device comprising:
  • a color picker display module configured to display a color picker window in the online editing page of the courseware according to the content color modification instruction
  • a color parameter obtaining module configured to acquire a color parameter input in a parameter input box of the color picker window
  • a positioning parameter conversion module configured to convert the obtained color parameter into a color wheel positioning parameter
  • a target color positioning module configured to locate a target color in the color wheel in the color picker window according to the color wheel positioning parameter
  • a content color modification module configured to modify content corresponding to the content identifier in the content color modification instruction to the target color.
  • a terminal comprising a memory, a processor, and computer instructions stored on the memory and operative on the processor, the processor implementing the computer instructions to implement the following steps:
  • a non-transitory computer readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed by a processor, implement the following steps:
  • 1 is an application environment diagram of a method for modifying a content color of an edit page in an embodiment
  • FIG. 2 is a schematic flow chart of a method for modifying a content color of an edit page in an embodiment
  • FIG. 3 is a schematic flow chart showing steps of displaying an online editing page of a courseware in an embodiment
  • FIG. 4 is a flow chart showing the steps of adding a color parameter in an embodiment
  • FIG. 5 is a schematic flow chart showing the steps of converting color wheel positioning parameters in an embodiment
  • FIG. 6 is a structural block diagram of an apparatus for editing a page content color in an embodiment
  • FIG. 7 is a structural block diagram of an apparatus for editing a page content color in another embodiment
  • FIG. 8 is a structural block diagram of an apparatus for editing a content color of a page in still another embodiment
  • FIG. 9 is a structural block diagram of a terminal in an edit page content color modification system in an embodiment.
  • FIG. 1 is an application environment diagram of a method for modifying a content color of an edit page in an embodiment.
  • the edit page content color modification method is applied to an edit page content color modification system.
  • the edit page content color modification system includes a terminal 110 and a server 120, wherein the terminal 110 is connected to the server 120 via a network.
  • the terminal 110 may be a fixed terminal or a mobile terminal, and the fixed terminal may specifically be at least one of a printer, a scanner, and a monitor, and the mobile terminal may specifically be at least one of a tablet computer, a smart phone, a personal data assistant, and a digital camera. .
  • a method for modifying a content color of an edited page is provided.
  • the method is applied to the terminal 110 in FIG. 1 by using the method.
  • the method specifically includes the following content:
  • a courseware online editing page is displayed in the terminal 110.
  • the courseware online editing page is a page for editing courseware and establishing a long connection with the server.
  • the user operates in the courseware online editing page through the input device of the terminal 110.
  • the terminal 110 acquires the content identifier of the selected content, and after obtaining the content identifier, when the color change operation is detected, the color picker calling function identifier is obtained, according to the acquired
  • the content identification and color picker call function identification generates a content color modification instruction.
  • the content identifier is used to identify the unique identifier of the selected content, and the internal identifier may be the location information of the selected content in the online editing page of the courseware.
  • the terminal 110 periodically acquires the courseware editing data in the online editing page of the courseware, and sends the acquired courseware editing data to the server 120 through the long connection, and stores the obtained courseware editing data in the server 120.
  • the terminal 110 monitors the opening instruction of the online editing page of the courseware again, and displays whether to restore the reminding information science of the courseware editing data.
  • the terminal 110 acquires the last saved courseware editing data from the server 120, and restores the courseware editing content in the courseware online editing page according to the acquired courseware editing data.
  • S202 specifically includes the following content: when the content selection operation in the online editing page of the courseware is monitored, the content identifier of the selected content is obtained, and the content operation toolbar is displayed; in the content operation toolbar When the color change button is clicked, a content color modification instruction is generated based on the content identifier.
  • the terminal 110 listens to the operation in the online editing page of the courseware, and when the content selection operation in the online editing page of the courseware is monitored, the content identifier of the content is obtained, the toolbar calling function is acquired, and the toolbar is executed. Call the function to get the toolbar script, draw the content operation toolbar according to the toolbar script, and display the drawn content operation toolbar in the courseware online editing page.
  • a color change button is set in the content action toolbar. When the terminal 110 detects that the color change button in the content operation toolbar is clicked, the terminal 110 generates a content color modification instruction according to the acquired content identifier.
  • the terminal 110 extracts the color picker call function identifier in the content color modification instruction, searches the color picker calling function according to the color picker calling function identifier, and executes the queryed color picker calling function to acquire the color picker drawing.
  • the script displays the color picker window in the online editing page of the courseware according to the color picker drawing script.
  • S204 specifically includes the following: querying a color picker drawing script from a server according to the content color modification instruction; drawing a color picker window according to the finder color picker drawing script; displaying the drawn color picker window In the courseware online editing page.
  • a preset color picker rendering script is stored in the server 120, and the color picker rendering script is a code file for drawing a color picker window.
  • the terminal 110 parses the content color modification instruction, extracts the color picker identifier by parsing, generates a script acquisition request according to the color picker identifier, and transmits a script acquisition request to the server 120.
  • the server 120 parses the received script acquisition request, extracts the color picker identifier by parsing, queries the color picker drawing script corresponding to the color picker identifier, and returns the queried color picker drawing script to the terminal 110.
  • the terminal 110 invokes the browser to load the color picker drawing script, draws a color picker window according to the loaded color picker drawing script, and displays the drawn color picker window in the courseware online editing page.
  • the terminal 110 listens to the mouse event in the online editing page of the courseware through the browser, updates the source DOM (Document Object Model) according to the monitored mouse event, and initializes the color disk at the same time.
  • the HTML5Canvas tag is called to draw the color wheel, and the predefined pointer drag event and the click color capture event are bound to the drawn color wheel.
  • a color input window is provided with a parameter input box and a parameter submit button for the user to input color parameters.
  • the terminal 110 acquires the color parameter in the parameter input box in the color picker window when the parameter submit button is detected to be clicked.
  • the terminal 110 converts the acquired color parameter into a color disk positioning parameter according to the correspondence between the color parameter and the color disk positioning parameter.
  • the color wheel positioning parameter is a parameter for identifying the position in the color wheel, and specifically may be a coordinate parameter in the color wheel.
  • the color parameter is a parameter for indicating the type of color.
  • the terminal 110 determines the position in the color wheel of the color picker window according to the color wheel positioning parameter, and extracts the corresponding color from the position determined in the color wheel. Extract the color to the target color.
  • the terminal 110 extracts the content identifier from the content modification instruction, determines the edit content in the courseware online edit page according to the content identifier, and modifies the determined edit content to the target color.
  • the content identification can be in a component identification or text location.
  • the terminal 110 determines components or texts in the online editing page of the courseware according to the component identification or the position of the text, and modifies the color of the determined component or text to the target color.
  • the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color.
  • the color picker window is displayed in the online editing page of the courseware.
  • the target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware.
  • the color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
  • the method before S202, the method further includes the step of displaying a courseware online editing page, and the step specifically includes the following content:
  • the user enters a user account in the login page of terminal 110 and clicks on the login button.
  • the terminal 110 acquires the input user account, and generates an edit page data request according to the acquired user account.
  • the terminal 110 acquires a preset server address, and sends an edit page data request to the server 120 according to the preset server address.
  • the edit page data request is used to obtain a request for courseware edit page data from the server.
  • the receiving server edits the page data online according to the courseware returned by the edit page data request.
  • the server 120 parses the edit page data request, parses and extracts the user account in the edit page data request, and verifies the extracted user account, and verifies the extracted user. Whether the account is in the authorized user list, if the extracted user account is in the authorized user list, the verification is passed, and the courseware online editing page data is returned to the terminal 110.
  • the terminal 110 receives the courseware online editing page data returned by the server 120.
  • the terminal 110 invokes a browser to render a courseware online editing page according to the received courseware online editing page data through the browser, and displays the rendered courseware online editing page in the browser.
  • the terminal 110 displays the courseware online editing page in the browser, establishes a long connection with the server through the browser, and the browser periodically obtains the editing content in the online editing page of the courseware, and sends the obtained editing content through the long connection.
  • the server 120 stores the received edited content.
  • the edit page data request is generated according to the input user account, and the server ensures that the server returns the online edit page data according to the edit page data request, thereby ensuring the access security of the courseware online editing page data.
  • the method before S206, the method further includes the step of adding a color parameter, and the step specifically includes the following:
  • a color parameter setting bar is disposed in the serial port of the color picker, a pointer slider is disposed on the color parameter setting bar, and a parameter range is set in the color parameter setting bar.
  • the user drags and slides the pointer slider on the color parameter setting bar through the input device of the terminal 110 to input the corresponding color parameter. After detecting that the pointer slider on the color parameter setting bar is slid, the terminal 110 acquires the position of the pointer slider in the color parameter setting bar.
  • the color parameter setting bar is provided with a parameter range, and after acquiring the position of the pointer slider, the terminal 110 determines the color parameter according to the parameter range of the acquired position and color parameter setting bar.
  • the color parameter setting bar is a transparency setting bar, and the parameter range of the transparency setting bar is 0%-100%. If the pointer slider is at one-half of the transparency setting bar, the determined color parameter is 50%; % is the starting position. If the pointer slider is at three-quarters of the transparency setting bar, the determined color parameter is 75%.
  • the terminal 110 queries the parameter input box corresponding to the color parameter setting bar, and adds the determined color parameter to the queried parameter input box.
  • the corresponding color parameter may be determined according to the position of the pointer slider in the color parameter setting bar, and the input of the color parameter is added. In this way, the pointer parameter slider can be directly dragged to complete the input of the color parameter, and the input efficiency of the color parameter is improved.
  • S208 specifically includes the step of converting color wheel positioning parameters, and the step specifically includes the following:
  • the parameter type can be an RGBA parameter, an HSB parameter, or a HEX parameter.
  • RGBA R means red
  • A means transparency (Alpha);
  • HSB H (Hue) means hue, and
  • HEX parameter is a code indicating color by hexadecimal, for example, the light pink HEX parameter is #FFB6C1; the orchid's purple HEX parameter is #DA70D6.
  • the terminal 110 After acquiring the color parameter, the terminal 110 identifies the color parameter according to the format of the various parameter types, determines the format matched by the acquired color parameter, determines the parameter type corresponding to the matched format, and determines the parameter type as the acquisition. The parameter type of the color parameter to.
  • the terminal 110 stores parameter correspondence between two color parameter types. After identifying the parameter type of the obtained color parameter, the terminal 110 queries the parameter correspondence corresponding to the parameter type, and converts the obtained color parameter into a color parameter of a different parameter type according to the corresponding relationship of the query, and obtains various parameter types. Corresponding color parameters, the obtained color parameters are added to the corresponding input box of the parameter type.
  • the parameter type of the obtained color parameter is RGBA parameter
  • the correspondence between the RGBA parameter and the HSB parameter, and the correspondence between the RGBA parameter and the HEX parameter are queried, and the RGBA parameter is converted into the RGBA parameter according to the corresponding relationship between the RGBA parameter and the HSB parameter.
  • the HSB parameter converts the RGBA parameter into a HEX parameter according to the corresponding relationship between the RGBA parameter and the HEX parameter, and adds the converted HSB parameter to the HSB parameter input box in the color picker window, and adds the converted HEX parameter. Go to the HEX parameter input box in the color picker window.
  • the terminal 110 stores a color wheel positioning parameter conversion relationship corresponding to each parameter type. After determining the parameter type of the color parameter, the terminal 110 queries the color disk location conversion relationship corresponding to the determined parameter type.
  • the terminal 110 after querying the color disk positioning parameter conversion relationship, the terminal 110 converts the color parameter according to the color disk positioning parameter conversion relationship, and obtains the color disk positioning parameter by conversion.
  • the color wheel positioning parameter is the coordinate parameter of the color type in the color wheel.
  • the color wheel positioning parameter conversion relationship is a correspondence relationship table between the color parameter and the color wheel positioning parameter, and the color relationship parameter and the color wheel positioning parameter corresponding to the color parameter are stored in the correspondence relationship table.
  • the terminal 110 queries the color palette positioning parameter corresponding to the acquired color parameter in the correspondence table.
  • the obtained color parameter is converted into a color disk positioning parameter according to the recognized parameter type, to ensure that the color parameter is converted into an accurate parameter according to the parameter type of the color parameter.
  • the color wheel positioning parameters improve the accuracy of selecting colors in the color wheel.
  • an edit page content color modification apparatus 600 is provided.
  • the apparatus specifically includes the following: a modification instruction acquisition module 602, a color picker display module 604, a color parameter acquisition module 606, and positioning.
  • the modification instruction obtaining module 602 is configured to obtain a content color modification instruction in the online editing page of the courseware.
  • the color picker display module 604 is configured to display the color picker window in the courseware online editing page according to the content color modification instruction.
  • the color parameter obtaining module 606 is configured to acquire a color parameter input in a parameter input box of the color picker window.
  • the positioning parameter conversion module 608 is configured to convert the acquired color parameter into a color disk positioning parameter.
  • the target color positioning module 610 is configured to locate the target color in the color wheel in the color picker window according to the color wheel positioning parameter.
  • the content color modification module 612 is configured to modify the content corresponding to the content identifier in the content color modification instruction to the target color.
  • the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color.
  • the color picker window is displayed in the online editing page of the courseware.
  • the target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware.
  • the color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
  • the edit page content color modification apparatus 600 specifically includes the following contents: a data request generation module 614 , a data request sending module 616 , a page data receiving module 618 , and an edit page display module 620 .
  • the data request generating module 614 is configured to generate an edit page data request according to the input user account.
  • the data request sending module 616 is configured to send an edit page data request to the server.
  • the page data receiving module 618 is configured to receive, by the server, online editing of the page data according to the courseware returned by the edit page data request.
  • the edit page display module 620 is configured to display the courseware online editing page in the browser according to the courseware online editing page data.
  • the edit page data request is generated according to the input user account, and the server ensures that the server returns the online edit page data according to the edit page data request, thereby ensuring the access security of the courseware online editing page data.
  • the modification instruction acquisition module 602 is further configured to: when listening to the content selection operation in the courseware online editing page, obtain the content identifier of the selected content, and display the content operation toolbar; and listen to the content operation toolbar When the color change button in the middle is clicked, a content color modification instruction is generated according to the content identifier.
  • the color picker display module 604 is further configured to query the color picker drawing script from the server according to the content color modification instruction; draw a color picker window according to the finder color picker drawing script; the color picker to be drawn The window is displayed in the courseware online editing page.
  • the edit page content color modification apparatus 600 specifically includes the following: a slider position acquisition module 622 , a color parameter determination module 624 , and a color parameter addition module 626 .
  • the slider position obtaining module 622 is configured to obtain a pointer slider position in the color parameter setting bar after detecting that the pointer slider of the color parameter setting bar in the color picker window slides.
  • a color parameter determining module 624 configured to determine a color parameter according to the obtained pointer slider position
  • a color parameter adding module 626 is configured to add a color parameter to a parameter input box of the color picker window.
  • the corresponding color parameter may be determined according to the position of the pointer slider in the color parameter setting bar, and the input of the color parameter is added. In this way, the pointer parameter slider can be directly dragged to complete the input of the color parameter, and the input efficiency of the color parameter is improved.
  • the positioning parameter conversion module 608 is further configured to identify the parameter type of the acquired color parameter; query the color wheel positioning parameter conversion relationship corresponding to the parameter type; and obtain the color disk positioning parameter conversion relationship according to the query The resulting color parameters are converted to color wheel positioning parameters.
  • the obtained color parameter is converted into a color disk positioning parameter according to the recognized parameter type, to ensure that the color parameter is converted into an accurate parameter according to the parameter type of the color parameter.
  • the color wheel positioning parameters improve the accuracy of selecting colors in the color wheel.
  • FIG. 9 is a schematic diagram showing the internal structure of the terminal 110 in the edit page content color modification system of FIG. 1 in an embodiment.
  • the terminal 110 includes a processor, a non-volatile storage medium, a memory, a network interface, a display screen, and an input device connected by a system bus.
  • the processor of terminal 110 is used to provide computing and control capabilities to support the operation of the entire terminal 110, the memory is used to store data, code instructions, etc., and the network interface is used for network communication with server 120.
  • At least one computer instruction is stored in the memory, and the computer instruction can be executed by the processor to implement the edit page content color modification method applicable to the terminal 110 provided in the embodiment of the present application.
  • the memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, or a read-only memory (ROM).
  • a non-volatile storage medium such as a magnetic disk, an optical disk, or a read-only memory (ROM).
  • the memory includes a non-volatile storage medium and an internal memory; the non-volatile storage medium stores an operating system and computer instructions executable by the processor to implement the edit page content color described above Modification method; the internal memory provides a cached operating environment for operating systems and computer executable instructions in a non-volatile storage medium.
  • FIG. 9 is only a schematic diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied.
  • the specific server may include More or fewer components are shown in Figure 9, or some components are combined, or have different component arrangements.
  • the embodiment of the present application provides a terminal, which includes a series of computer instructions stored in a memory.
  • the method for modifying the content color of the edit page proposed by the embodiments of the present application may be implemented.
  • the particular operations implemented by the various portions of the computer instructions are based.
  • a terminal includes a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor executing the computer instructions to implement the following steps: obtaining courseware online editing The content color modification instruction in the page; displaying the color picker window in the online editing page of the courseware according to the content color modification instruction; acquiring the color parameter input in the parameter input box of the color picker window; converting the obtained color parameter into a color wheel positioning Parameter; locate the target color in the color wheel in the color picker window according to the color wheel positioning parameter; modify the content corresponding to the content identifier in the content color modification instruction to the target color.
  • the processor before acquiring the content color modification instruction in the online editing page of the courseware, the processor further executes the following steps: generating an edit page data request according to the input user account; and sending the edit page data request To the server; the receiving server edits the page data online according to the courseware returned by the edit page data request; and displays the courseware online editing page in the browser according to the courseware online editing page data.
  • obtaining a content color modification instruction in the online editing page of the courseware includes: obtaining a content identifier of the selected content when displaying the content selection operation in the online editing page of the courseware, and displaying the content operation toolbar; When the color change button in the content operation toolbar is clicked, a content color modification instruction is generated according to the content identification.
  • the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, including: querying the color picker drawing script from the server according to the content color modification instruction; drawing the drawing according to the queryed color picker drawing script The color shader window; the color picker window to be drawn is displayed in the courseware online editing page.
  • the processor before acquiring the color parameter input in the parameter input box of the color picker window, the processor further implements the following steps when the computer instruction is executed: when the color parameter setting bar in the color picker window is detected After the pointer slider slides, the position of the pointer slider in the color parameter setting bar is obtained; the color parameter is determined according to the obtained position of the pointer slider; the color parameter is added to the parameter input box of the color picker window.
  • converting the obtained color parameter into a color disk positioning parameter comprises: identifying a parameter type of the acquired color parameter; querying a color wheel positioning parameter conversion relationship corresponding to the parameter type; and according to the queried color wheel The parameter conversion relationship is located, and the obtained color parameter is converted into a color wheel positioning parameter.
  • the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color.
  • the color picker window is displayed in the online editing page of the courseware.
  • the target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware.
  • the color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
  • a non-transitory computer readable storage medium having stored thereon computer instructions, the computer instructions being executed by a processor, causing the processor to perform the steps of: acquiring a content color modification instruction in a courseware online editing page;
  • the content color modification instruction displays the color picker window in the online editing page of the courseware; obtains the color parameter input in the parameter input box of the color picker window; converts the obtained color parameter into a color wheel positioning parameter; according to the color wheel positioning parameter
  • the target color is positioned in the color wheel in the color picker window; the content corresponding to the content identifier in the content color modification instruction is modified to the target color.
  • the processor before acquiring the content color modification instruction in the courseware online editing page, the processor further performs the steps of: generating an edit page data request according to the input user account; sending the edit page data request to the server; and receiving the server according to The courseware data returned by the editing page data request is edited online; the courseware online editing page is displayed in the browser according to the courseware online editing page data.
  • obtaining a content color modification instruction in the online editing page of the courseware includes: obtaining a content identifier of the selected content when displaying the content selection operation in the online editing page of the courseware, and displaying the content operation toolbar; When the color change button in the content operation toolbar is clicked, a content color modification instruction is generated according to the content identification.
  • the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, including: querying the color picker drawing script from the server according to the content color modification instruction; drawing the drawing according to the queryed color picker drawing script The color shader window; the color picker window to be drawn is displayed in the courseware online editing page.
  • the processor before acquiring the color parameter input in the parameter input box of the color picker window, the processor further performs the following steps: after detecting that the pointer slider of the color parameter setting bar in the color picker window slides, Get the position of the pointer slider in the color parameter setting bar; determine the color parameter according to the obtained position of the pointer slider; add the color parameter to the parameter input box of the color picker window.
  • converting the obtained color parameter into a color disk positioning parameter comprises: identifying a parameter type of the acquired color parameter; querying a color wheel positioning parameter conversion relationship corresponding to the parameter type; and according to the queried color wheel The parameter conversion relationship is located, and the obtained color parameter is converted into a color wheel positioning parameter.
  • the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color.
  • the color picker window is displayed in the online editing page of the courseware.
  • the target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware.
  • the color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
  • the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.

Landscapes

  • Engineering & Computer Science (AREA)
  • General Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Human Computer Interaction (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • User Interface Of Digital Computer (AREA)
  • Processing Or Creating Images (AREA)
  • Image Processing (AREA)

Abstract

A method for altering the color of editing page content, comprising: acquiring a content color alteration instruction in a courseware online editing page; according to the content color alteration instruction, displaying a color picker window on the courseware online editing page; acquiring a color parameter that is inputted into a parameter input field of the color picker window; converting the acquired color parameter into a color wheel position parameter; positioning a target color in a color wheel in the color picker window according to the color wheel position parameter; altering content corresponding to a content identifier in the content color alteration instruction to be the target color.

Description

编辑页面内容颜色修改方法、装置、终端和存储介质Edit page content color modification method, device, terminal, and storage medium
本申请要求于2017年12月12日提交中国专利局、申请号为2017113168964、发明名称为“编辑页面内容颜色修改方法、装置、终端和存储介质”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。This application claims the priority of the Chinese patent application filed on December 12, 2017, the Chinese Patent Office, the application number is 2017113168964, and the invention name is "editing page content color modification method, device, terminal and storage medium". The citations are incorporated herein by reference.
技术领域Technical field
本申请涉及信息处理技术领域,特别是涉及一种编辑页面内容颜色修改方法、装置、终端和存储介质。The present application relates to the field of information processing technologies, and in particular, to a method, an apparatus, a terminal, and a storage medium for modifying a content color of an edit page.
背景技术Background technique
随着互联网技术的发展,越来越多的数据都是通过互联网传输的。随着互联网的普及,出现了各种互联网产品,用户可以通过互联网产品实现各种应用功能。甚至用户通过终端可以在线编辑课件。With the development of Internet technology, more and more data is transmitted through the Internet. With the popularity of the Internet, various Internet products have emerged, and users can implement various application functions through Internet products. Even users can edit courseware online through the terminal.
然而,用户在终端展示的课件在线编辑页面中编辑课件时,课件在线编辑页面中需要将课件中的内容设置为不同的颜色,但是传统的在线编辑过程中,只是通过预设有限数量的颜色供选择,颜色数量有限,降低了课件在线编辑页面中编辑内容的颜色标记准确率。However, when the user edits the courseware in the courseware online editing page displayed by the terminal, the courseware online editing page needs to set the content in the courseware to a different color, but in the traditional online editing process, only a preset limited number of colors are provided. The choice, the limited number of colors, reduces the color mark accuracy of the edit content in the online editing page of the courseware.
发明内容Summary of the invention
根据本申请的各种实施例,提供一种编辑页面内容颜色修改方法、装置、终端和存储介质。According to various embodiments of the present application, an edit page content color modification method, apparatus, terminal, and storage medium are provided.
一种编辑页面内容颜色修改方法,包括:A method for modifying the color of an edit page content, including:
获取课件在线编辑页面中内容颜色修改指令;Obtain the content color modification instruction in the online editing page of the courseware;
根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;Displaying a color picker window in the online editing page of the courseware according to the content color modification instruction;
获取所述拾色器窗口的参数输入框中输入的颜色参数;Obtaining a color parameter input in a parameter input box of the color picker window;
将获取到的颜色参数转换为色盘定位参数;Converting the obtained color parameters into color wheel positioning parameters;
根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及Positioning a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。Modifying content corresponding to the content identifier in the content color modification instruction to the target color.
一种编辑页面内容颜色修改装置,包括:An editing page content color modification device, comprising:
修改指令获取模块,用于获取课件在线编辑页面中内容颜色修改指令;Modifying an instruction acquisition module for acquiring a content color modification instruction in the online editing page of the courseware;
拾色器展示模块,用于根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;a color picker display module, configured to display a color picker window in the online editing page of the courseware according to the content color modification instruction;
颜色参数获取模块,用于获取所述拾色器窗口的参数输入框中输入的颜色参数;a color parameter obtaining module, configured to acquire a color parameter input in a parameter input box of the color picker window;
定位参数转换模块,用于将获取到的颜色参数转换为色盘定位参数;a positioning parameter conversion module, configured to convert the obtained color parameter into a color wheel positioning parameter;
目标颜色定位模块,用于根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及a target color positioning module, configured to locate a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
内容颜色修改模块,用于将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。And a content color modification module, configured to modify content corresponding to the content identifier in the content color modification instruction to the target color.
一种终端,所述计算机设备包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机指令,所述处理器执行所述计算机指令时实现以下步骤:A terminal, the computer device comprising a memory, a processor, and computer instructions stored on the memory and operative on the processor, the processor implementing the computer instructions to implement the following steps:
获取课件在线编辑页面中内容颜色修改指令;Obtain the content color modification instruction in the online editing page of the courseware;
根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;Displaying a color picker window in the online editing page of the courseware according to the content color modification instruction;
获取所述拾色器窗口的参数输入框中输入的颜色参数;Obtaining a color parameter input in a parameter input box of the color picker window;
将获取到的颜色参数转换为色盘定位参数;Converting the obtained color parameters into color wheel positioning parameters;
根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及Positioning a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。Modifying content corresponding to the content identifier in the content color modification instruction to the target color.
一种非易失性计算机可读存储介质,其上存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现以下步骤:A non-transitory computer readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed by a processor, implement the following steps:
获取课件在线编辑页面中内容颜色修改指令;Obtain the content color modification instruction in the online editing page of the courseware;
根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;Displaying a color picker window in the online editing page of the courseware according to the content color modification instruction;
获取所述拾色器窗口的参数输入框中输入的颜色参数;Obtaining a color parameter input in a parameter input box of the color picker window;
将获取到的颜色参数转换为色盘定位参数;Converting the obtained color parameters into color wheel positioning parameters;
根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及Positioning a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。Modifying content corresponding to the content identifier in the content color modification instruction to the target color.
本申请的一个或多个实施例的细节在下面的附图和描述中提出。本申请的其它特征、目的和优点将从说明书、附图以及权利要求书变得明显。Details of one or more embodiments of the present application are set forth in the accompanying drawings and description below. Other features, objects, and advantages of the invention will be apparent from the description and appended claims.
附图说明DRAWINGS
为了更清楚地说明本申请实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本申请的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings to be used in the embodiments or the prior art description will be briefly described below. Obviously, the drawings in the following description are only It is a certain embodiment of the present application, and other drawings can be obtained according to the drawings without any creative work for those skilled in the art.
图1为一个实施例中编辑页面内容颜色修改方法的应用环境图;1 is an application environment diagram of a method for modifying a content color of an edit page in an embodiment;
图2为一个实施例中编辑页面内容颜色修改方法的流程示意图;2 is a schematic flow chart of a method for modifying a content color of an edit page in an embodiment;
图3为一个实施例中显示课件在线编辑页面的步骤的流程示意图;3 is a schematic flow chart showing steps of displaying an online editing page of a courseware in an embodiment;
图4为一个实施例中添加颜色参数的步骤的流程示意图;4 is a flow chart showing the steps of adding a color parameter in an embodiment;
图5为一个实施例中转换色盘定位参数的步骤的流程示意图;5 is a schematic flow chart showing the steps of converting color wheel positioning parameters in an embodiment;
图6为一个实施例中编辑页面内容颜色修改装置的结构框图;6 is a structural block diagram of an apparatus for editing a page content color in an embodiment;
图7为另一个实施例中编辑页面内容颜色修改装置的结构框图;7 is a structural block diagram of an apparatus for editing a page content color in another embodiment;
图8为再一个实施例中编辑页面内容颜色修改装置的结构框图;FIG. 8 is a structural block diagram of an apparatus for editing a content color of a page in still another embodiment; FIG.
图9为一个实施例中编辑页面内容颜色修改系统中的终端的结构框图。FIG. 9 is a structural block diagram of a terminal in an edit page content color modification system in an embodiment.
具体实施方式Detailed ways
为了使本申请的目的、技术方案及优点更加清楚明白,以下结合附图及实施例,对本申请进行进一步详细说明。应当理解,此处描述的具体实施例仅仅用以解释本申请,并不用于限定本申请。In order to make the objects, technical solutions, and advantages of the present application more comprehensible, the present application will be further described in detail below with reference to the accompanying drawings and embodiments. It is understood that the specific embodiments described herein are merely illustrative of the application and are not intended to be limiting.
图1为一个实施例中编辑页面内容颜色修改方法的应用环境图。参照图1,该编辑页面内容颜色修改方法应用于编辑页面内容颜色修改系统。编辑页面内容颜色修改系统包括终端110和服务器120,其中终端110通过网络与服务器120连接。终端110可以是固定终端或移动终端,固定终端具体可以是打印机、扫描仪和监控器中的至少一种,移动终端具体可以是平板电脑、智能手机、个人数据助理和数码相机中的至少一种。FIG. 1 is an application environment diagram of a method for modifying a content color of an edit page in an embodiment. Referring to FIG. 1, the edit page content color modification method is applied to an edit page content color modification system. The edit page content color modification system includes a terminal 110 and a server 120, wherein the terminal 110 is connected to the server 120 via a network. The terminal 110 may be a fixed terminal or a mobile terminal, and the fixed terminal may specifically be at least one of a printer, a scanner, and a monitor, and the mobile terminal may specifically be at least one of a tablet computer, a smart phone, a personal data assistant, and a digital camera. .
如图2所示,在一个实施例中,提供一种编辑页面内容颜色修改方法,本实施例以该方法应用于图1中的终端110来举例说明,该方法具体包括以下内容:As shown in FIG. 2, in an embodiment, a method for modifying a content color of an edited page is provided. The method is applied to the terminal 110 in FIG. 1 by using the method. The method specifically includes the following content:
S202,获取课件在线编辑页面中内容颜色修改指令。S202. Acquire a content color modification instruction in the online editing page of the courseware.
在一个实施例中,终端110中显示有课件在线编辑页面。课件在线编辑页面为用于编辑课件并与服务器建立了长连接的页面。用户通过终端110的输入设备在课件在线编辑页面中进行操作。终端110在检测到课件在线编辑页面中内容选定操作时,获取选定内容的内容标识,在获取到内容标识后,检测到颜色更改操作时,获取拾色器调用函数标识,根据获取到的内容标识和拾色器调用函数标识生成内容颜色修改指令。其中,内容标识用于标识选定内容的唯一标识,内用标识具体可以是选定内容在课件在线编辑页面中的位置信息。In one embodiment, a courseware online editing page is displayed in the terminal 110. The courseware online editing page is a page for editing courseware and establishing a long connection with the server. The user operates in the courseware online editing page through the input device of the terminal 110. When detecting the content selection operation in the online editing page of the courseware, the terminal 110 acquires the content identifier of the selected content, and after obtaining the content identifier, when the color change operation is detected, the color picker calling function identifier is obtained, according to the acquired The content identification and color picker call function identification generates a content color modification instruction. The content identifier is used to identify the unique identifier of the selected content, and the internal identifier may be the location information of the selected content in the online editing page of the courseware.
在一个实施例中,终端110定时获取课件在线编辑页面中的课件编辑数据,将获取到的课件编辑数据通过长连接发送至服务器120,将获取到的课件编辑数据存储在服务器120中。终端110在课件在线编辑页面被异常关闭后,再次监测到课件在线编辑页面的开启指令,则显示是否恢复课件编辑数据的提醒信息学。终端110在接收到课件编辑数据恢复数据指令时,从服务器120中获取最后一次保存的课件编辑数据,根据获取到的课件编辑数据恢复课件在线编辑页面中的课件编辑内容。In one embodiment, the terminal 110 periodically acquires the courseware editing data in the online editing page of the courseware, and sends the acquired courseware editing data to the server 120 through the long connection, and stores the obtained courseware editing data in the server 120. After the online editing page of the courseware is abnormally closed, the terminal 110 monitors the opening instruction of the online editing page of the courseware again, and displays whether to restore the reminding information science of the courseware editing data. Upon receiving the courseware editing data recovery data command, the terminal 110 acquires the last saved courseware editing data from the server 120, and restores the courseware editing content in the courseware online editing page according to the acquired courseware editing data.
在一个实施例中,S202具体还包括以下内容:在监听到课件在线编辑页面中的内容选中操作时,获取所选中内容的内容标识,并展示内容操作工具栏;在监听到内容操作工具栏中的颜色更改按钮被点击时,根据内容标识生成内容颜色修改指令。In an embodiment, S202 specifically includes the following content: when the content selection operation in the online editing page of the courseware is monitored, the content identifier of the selected content is obtained, and the content operation toolbar is displayed; in the content operation toolbar When the color change button is clicked, a content color modification instruction is generated based on the content identifier.
在一个实施例中,终端110对课件在线编辑页面中的操作进行监听,在监听到课件在 线编辑页面中的内容选中操作时,获取所中内容的内容标识,获取工具栏调用函数,执行工具栏调用函数获取工具栏脚本,根据工具栏脚本绘制内容操作工具栏,将绘制的内容操作工具栏展示在课件在线编辑页面中。内容操作工具栏中设置有颜色更改按钮。终端110在监听到内容操作工具栏中的颜色更改按钮被点击时,根据获取到的内容标识生成内容颜色修改指令。In one embodiment, the terminal 110 listens to the operation in the online editing page of the courseware, and when the content selection operation in the online editing page of the courseware is monitored, the content identifier of the content is obtained, the toolbar calling function is acquired, and the toolbar is executed. Call the function to get the toolbar script, draw the content operation toolbar according to the toolbar script, and display the drawn content operation toolbar in the courseware online editing page. A color change button is set in the content action toolbar. When the terminal 110 detects that the color change button in the content operation toolbar is clicked, the terminal 110 generates a content color modification instruction according to the acquired content identifier.
S204,根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口。S204. Display the color picker window in the online editing page of the courseware according to the content color modification instruction.
在一个实施例中,终端110提取内容颜色修改指令中的拾色器调用函数标识,根据拾色器调用函数标识查询拾色器调用函数,执行查询到的拾色器调用函数获取拾色器绘制脚本,根据拾色器绘制脚本在课件在线编辑页面中展示拾色器窗口。In an embodiment, the terminal 110 extracts the color picker call function identifier in the content color modification instruction, searches the color picker calling function according to the color picker calling function identifier, and executes the queryed color picker calling function to acquire the color picker drawing. The script displays the color picker window in the online editing page of the courseware according to the color picker drawing script.
在一个实施例中,S204具体还包括以下内容:根据内容颜色修改指令从服务器查询拾色器绘制脚本;根据查询到的拾色器绘制脚本绘制拾色器窗口;将绘制的拾色器窗口展示在课件在线编辑页面中。In an embodiment, S204 specifically includes the following: querying a color picker drawing script from a server according to the content color modification instruction; drawing a color picker window according to the finder color picker drawing script; displaying the drawn color picker window In the courseware online editing page.
在一个实施例中,服务器120中存储着预设的拾色器绘制脚本,拾色器绘制脚本为用于绘制拾色器窗口的代码文件。终端110对内容颜色修改指令解析,通过解析提取拾色器标识,根据拾色器标识生成脚本获取请求,将脚本获取请求发送至服务器120。服务器120对接收到的脚本获取请求进行解析,通过解析提取拾色器标识,查询与拾色器标识对应的拾色器绘制脚本,将查询到的拾色器绘制脚本返回至终端110。终端110调用浏览器加载拾色器绘制脚本,根据加载的拾色器绘制脚本绘制拾色器窗口,将绘制的拾色器窗口展示在课件在线编辑页面中。In one embodiment, a preset color picker rendering script is stored in the server 120, and the color picker rendering script is a code file for drawing a color picker window. The terminal 110 parses the content color modification instruction, extracts the color picker identifier by parsing, generates a script acquisition request according to the color picker identifier, and transmits a script acquisition request to the server 120. The server 120 parses the received script acquisition request, extracts the color picker identifier by parsing, queries the color picker drawing script corresponding to the color picker identifier, and returns the queried color picker drawing script to the terminal 110. The terminal 110 invokes the browser to load the color picker drawing script, draws a color picker window according to the loaded color picker drawing script, and displays the drawn color picker window in the courseware online editing page.
在一个实施例中,终端110通过浏览器对课件在线编辑页面中的鼠标事件进行监听,根据监听到的鼠标事件对更新源DOM(Document Object Model,文档对象模型),同时对色盘进行初始化,在监测到源DOM更新完毕后,调用HTML5Canvas标签绘制色盘,将预定义的指针拖拽事件以及点击取色事件与绘制的色盘进行绑定。In one embodiment, the terminal 110 listens to the mouse event in the online editing page of the courseware through the browser, updates the source DOM (Document Object Model) according to the monitored mouse event, and initializes the color disk at the same time. After monitoring the update of the source DOM, the HTML5Canvas tag is called to draw the color wheel, and the predefined pointer drag event and the click color capture event are bound to the drawn color wheel.
S206,获取拾色器窗口的参数输入框中输入的颜色参数。S206. Acquire a color parameter input in a parameter input box of the color picker window.
在一个实施例中,拾色器窗口中设置有参数输入框和参数提交按钮,参数输入框用于用户输入颜色参数。终端110在监听到参数提交按钮被点击时,获取拾色器窗口中参数输入框中的颜色参数。In one embodiment, a color input window is provided with a parameter input box and a parameter submit button for the user to input color parameters. The terminal 110 acquires the color parameter in the parameter input box in the color picker window when the parameter submit button is detected to be clicked.
S208,将获取到的颜色参数转换为色盘定位参数。S208. Convert the obtained color parameter into a color disk positioning parameter.
在一个实施例中,终端110在获取颜色参数后,根据颜色参数与色盘定位参数的对应关系,将获取到的颜色参数转换成色盘定位参数。色盘定位参数为用于标识色盘中位置的参数,具体可以是色盘中的坐标参数。颜色参数为用于表示颜色种类的参数。In an embodiment, after acquiring the color parameter, the terminal 110 converts the acquired color parameter into a color disk positioning parameter according to the correspondence between the color parameter and the color disk positioning parameter. The color wheel positioning parameter is a parameter for identifying the position in the color wheel, and specifically may be a coordinate parameter in the color wheel. The color parameter is a parameter for indicating the type of color.
S210,根据色盘定位参数在拾色器窗口中色盘中定位目标颜色。S210. Position the target color in the color wheel in the color picker window according to the color wheel positioning parameter.
在一个实施例中,终端110在将颜色参数转换为色盘定位参数后,根据色盘定位参数在拾色器窗口的色盘中确定位置,从色盘中确定的位置出提取相应的颜色,提取到颜色为目标颜色。In one embodiment, after converting the color parameter to the color wheel positioning parameter, the terminal 110 determines the position in the color wheel of the color picker window according to the color wheel positioning parameter, and extracts the corresponding color from the position determined in the color wheel. Extract the color to the target color.
S212,将内容颜色修改指令中内容标识对应的内容修改为目标颜色。S212. Modify the content corresponding to the content identifier in the content color modification instruction to the target color.
在一个实施例中,终端110将内容修改指令中提取内容标识,根据内容标识在课件在线编辑页面中确定编辑内容,将确定的编辑内容修改为目标颜色。In one embodiment, the terminal 110 extracts the content identifier from the content modification instruction, determines the edit content in the courseware online edit page according to the content identifier, and modifies the determined edit content to the target color.
在一个实施例中,内容标识可以是组件标识或文字位置中的。终端110根据组件标识或文字位置确定课件在线编辑页面中的组件或文字,将确定的组件或文字的颜色修改为目标颜色。In one embodiment, the content identification can be in a component identification or text location. The terminal 110 determines components or texts in the online editing page of the courseware according to the component identification or the position of the text, and modifies the color of the determined component or text to the target color.
本实施例中,在获取到课件在线编辑页面中内容颜色修改指令后,根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口,拾色器窗口中包括参数输入框和色盘。获取参数输入框中输入的颜色参数,将颜色参数转换为色盘定位参数,根据色盘定位参数在色盘中定位目标颜色,将需要进行颜色修改的内容修改为目标颜色。在课件在线编辑页面中展示拾色器窗口,可以根据输入框中的颜色参数在色盘中定位目标颜色,提供了更多的颜色供选择,提高了选取目标颜色的准确性,也提高了课件在线编辑页面中编辑内容的颜色标记准确率,避免了内容标记颜色的冲突。In this embodiment, after the content color modification instruction in the online editing page of the courseware is acquired, the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color. The color picker window is displayed in the online editing page of the courseware. The target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware. The color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
如图3所示,在一个实施例中,S202之前具体还包括显示课件在线编辑页面的步骤,该步骤具体包括以下内容:As shown in FIG. 3, in an embodiment, before S202, the method further includes the step of displaying a courseware online editing page, and the step specifically includes the following content:
S302,根据输入的用户账号生成编辑页面数据请求。S302. Generate an edit page data request according to the input user account.
在一个实施例中,用户在终端110的登录页面中输入用户账号,点击登录按钮。终端110在检测到登录页面的登录按钮被点击时,获取输入的用户账号,根据获取的用户账号生成编辑页面数据请求。In one embodiment, the user enters a user account in the login page of terminal 110 and clicks on the login button. When detecting that the login button of the login page is clicked, the terminal 110 acquires the input user account, and generates an edit page data request according to the acquired user account.
S304,将编辑页面数据请求发送至服务器。S304. Send an edit page data request to the server.
在一个实施例中,终端110获取预设的服务器地址,根据预设的服务器地址将编辑页面数据请求发送至服务器120。编辑页面数据请求用于从服务器获取课件编辑页面数据的请求。In one embodiment, the terminal 110 acquires a preset server address, and sends an edit page data request to the server 120 according to the preset server address. The edit page data request is used to obtain a request for courseware edit page data from the server.
S306,接收服务器根据编辑页面数据请求返回的课件在线编辑页面数据。S306. The receiving server edits the page data online according to the courseware returned by the edit page data request.
在一个实施例中,服务器120在接收到编辑页面数据请求后,对编辑页面数据请求进行解析,通过解析提取编辑页面数据请求中用户账号,对提取到的用户账号进行验证,验证提取到的用户账号是否在授权用户名单中,若提取到的用户账号在授权用户名单中,则验证通过,向终端110返回课件在线编辑页面数据。终端110接收服务器120返回的课件在线编辑页面数据。In an embodiment, after receiving the edit page data request, the server 120 parses the edit page data request, parses and extracts the user account in the edit page data request, and verifies the extracted user account, and verifies the extracted user. Whether the account is in the authorized user list, if the extracted user account is in the authorized user list, the verification is passed, and the courseware online editing page data is returned to the terminal 110. The terminal 110 receives the courseware online editing page data returned by the server 120.
S308,根据课件在线编辑页面数据在浏览器中显示课件在线编辑页面。S308. Display the courseware online editing page in the browser according to the courseware online editing page data.
在一个实施例中,终端110调用浏览器,通过浏览器根据接收到课件在线编辑页面数据渲染课件在线编辑页面,在浏览器中显示渲染生成的课件在线编辑页面。In one embodiment, the terminal 110 invokes a browser to render a courseware online editing page according to the received courseware online editing page data through the browser, and displays the rendered courseware online editing page in the browser.
在一个实施例中,终端110在浏览器中显示课件在线编辑页面,通过浏览器与服务器建立长连接,浏览器定期获取课件在线编辑页面中的编辑内容,将获取到的编辑内容通过长连接发送至服务器120,服务器120将接收到的编辑内容进行存储。In one embodiment, the terminal 110 displays the courseware online editing page in the browser, establishes a long connection with the server through the browser, and the browser periodically obtains the editing content in the online editing page of the courseware, and sends the obtained editing content through the long connection. To the server 120, the server 120 stores the received edited content.
本实施例中,根据输入的用户账号生成编辑页面数据请求,确保服务器根据编辑页面数据请求返回课件在线编辑页面数据,保证了课件在线编辑页面数据的访问安全性。In this embodiment, the edit page data request is generated according to the input user account, and the server ensures that the server returns the online edit page data according to the edit page data request, thereby ensuring the access security of the courseware online editing page data.
如图4所示,在一个实施例中,S206之前具体还包括添加颜色参数的步骤,该步骤具体包括以下内容:As shown in FIG. 4, in an embodiment, before S206, the method further includes the step of adding a color parameter, and the step specifically includes the following:
S402,在检测到拾色器窗口中颜色参数设置条的指针滑块滑动后,获取颜色参数设置条中的指针滑块位置。S402. After detecting that the pointer slider of the color parameter setting bar in the color picker window slides, obtain the position of the pointer slider in the color parameter setting bar.
在一个实施例中,拾色器串口中设置有颜色参数设置条,颜色参数设置条上设置有指针滑块,颜色参数设置条设置有参数范围。用户通过终端110的输入设备对颜色参数设置条上的指针滑块进行拖拽滑动来输入相应的颜色参数。终端110在检测到颜色参数设置条上的指针滑块被滑动后,获取指针滑块在颜色参数设置条中位置。In one embodiment, a color parameter setting bar is disposed in the serial port of the color picker, a pointer slider is disposed on the color parameter setting bar, and a parameter range is set in the color parameter setting bar. The user drags and slides the pointer slider on the color parameter setting bar through the input device of the terminal 110 to input the corresponding color parameter. After detecting that the pointer slider on the color parameter setting bar is slid, the terminal 110 acquires the position of the pointer slider in the color parameter setting bar.
S404,根据获取到的指针滑块位置确定颜色参数。S404. Determine a color parameter according to the obtained position of the pointer slider.
在一个实施例中,颜色参数设置条设置有参数范围,终端110在获取到指针滑块位置后,根据获取到位置和颜色参数设置条的参数范围确定颜色参数。In one embodiment, the color parameter setting bar is provided with a parameter range, and after acquiring the position of the pointer slider, the terminal 110 determines the color parameter according to the parameter range of the acquired position and color parameter setting bar.
例如,颜色参数设置条为透明度设置条,透明度设置条的参数范围为0%-100%,若指针滑块在透明度设置条的二分之一处,则确定的颜色参数为50%;以0%为起始位置,若指针滑块在透明度设置条的四分之三处,则确定的颜色参数为75%。For example, the color parameter setting bar is a transparency setting bar, and the parameter range of the transparency setting bar is 0%-100%. If the pointer slider is at one-half of the transparency setting bar, the determined color parameter is 50%; % is the starting position. If the pointer slider is at three-quarters of the transparency setting bar, the determined color parameter is 75%.
S406,将颜色参数添加到拾色器窗口的参数输入框中。S406, adding a color parameter to a parameter input box of the color picker window.
在一个实施例中,终端110在确定颜色参数后,查询与颜色参数设置条对应的参数输入框,将确定的颜色参数添加到查询到的参数输入框中。In an embodiment, after determining the color parameter, the terminal 110 queries the parameter input box corresponding to the color parameter setting bar, and adds the determined color parameter to the queried parameter input box.
本实施例中,在检测到拾色器窗口中颜色参数设置条的指针滑块滑动后,可以根据指针滑块在颜色参数设置条中的位置,确定相应的颜色参数,增加了颜色参数的输入方式,直接对指针滑块进行拖拽即可完成颜色参数的输入,提高了颜色参数的输入效率。In this embodiment, after detecting that the pointer slider of the color parameter setting bar in the color picker window slides, the corresponding color parameter may be determined according to the position of the pointer slider in the color parameter setting bar, and the input of the color parameter is added. In this way, the pointer parameter slider can be directly dragged to complete the input of the color parameter, and the input efficiency of the color parameter is improved.
如图5所示,在一个实施例中,S208具体包括转换色盘定位参数的步骤,该步骤具体包括以下内容:As shown in FIG. 5, in an embodiment, S208 specifically includes the step of converting color wheel positioning parameters, and the step specifically includes the following:
S502,识别获取到的颜色参数的参数类型。S502. Identify a parameter type of the obtained color parameter.
在一个实施例中,参数类型可以是RGBA参数、HSB参数或HEX参数。其中,RGBA中,R表示红色(Red),G表示绿色(Green),B表示蓝色blue,A表示透明度(Alpha);HSB中,H(Hue)表示色相,S(Saturation)表示饱和度,B(Brightness)表示亮度;HEX参数为由十六进制表示颜色的代码,例如浅粉色的HEX参数为#FFB6C1;兰花的紫色的HEX参数为#DA70D6。In one embodiment, the parameter type can be an RGBA parameter, an HSB parameter, or a HEX parameter. Among them, in RGBA, R means red, G means green, B means blue blue, A means transparency (Alpha); HSB, H (Hue) means hue, and S (Saturation) means saturation, B (Brightness) indicates brightness; HEX parameter is a code indicating color by hexadecimal, for example, the light pink HEX parameter is #FFB6C1; the orchid's purple HEX parameter is #DA70D6.
终端110获取到颜色参数后,根据各种参数类型的格式对颜色参数进行识别,通过识别确定获取到的颜色参数所匹配的格式,确定匹配的格式对应的参数类型,以确定的参数类型作为获取到的颜色参数的参数类型。After acquiring the color parameter, the terminal 110 identifies the color parameter according to the format of the various parameter types, determines the format matched by the acquired color parameter, determines the parameter type corresponding to the matched format, and determines the parameter type as the acquisition. The parameter type of the color parameter to.
在一个实施例中,终端110中存储着各颜色参数类型两两之间的参数对应关系。终端110在识别到获取到的颜色参数的参数类型后,查询参数类型对应的参数对应关系,根据 查询到的对应关系将获取到的颜色参数转换为不同参数类型的颜色参数,得到各种参数类型对应的颜色参数,将得到的颜色参数添加到参数类型相应的输入框中。In one embodiment, the terminal 110 stores parameter correspondence between two color parameter types. After identifying the parameter type of the obtained color parameter, the terminal 110 queries the parameter correspondence corresponding to the parameter type, and converts the obtained color parameter into a color parameter of a different parameter type according to the corresponding relationship of the query, and obtains various parameter types. Corresponding color parameters, the obtained color parameters are added to the corresponding input box of the parameter type.
例如,获取到的颜色参数的参数类型为RGBA参数,查询RGBA参数与HSB参数的对应关系以及RGBA参数与HEX参数的对应关系,根据查询到的RGBA参数与HSB参数的对应关系将RGBA参数转换为HSB参数,根据查询到的RGBA参数与HEX参数的对应关系将RGBA参数转换为HEX参数,将转换得到的HSB参数添加到拾色器窗口中的HSB参数输入框,同时将转换得到的HEX参数添加到拾色器窗口中的HEX参数输入框。For example, the parameter type of the obtained color parameter is RGBA parameter, the correspondence between the RGBA parameter and the HSB parameter, and the correspondence between the RGBA parameter and the HEX parameter are queried, and the RGBA parameter is converted into the RGBA parameter according to the corresponding relationship between the RGBA parameter and the HSB parameter. The HSB parameter converts the RGBA parameter into a HEX parameter according to the corresponding relationship between the RGBA parameter and the HEX parameter, and adds the converted HSB parameter to the HSB parameter input box in the color picker window, and adds the converted HEX parameter. Go to the HEX parameter input box in the color picker window.
S504,查询与参数类型对应的色盘定位参数转换关系。S504. Query a color disk positioning parameter conversion relationship corresponding to the parameter type.
在一个实施例中,终端110中存储着各种参数类型分别对应的色盘定位参数转换关系。终端110在确定颜色参数的参数类型后,查询与确定的参数类型对应的色盘定位转换关系。In an embodiment, the terminal 110 stores a color wheel positioning parameter conversion relationship corresponding to each parameter type. After determining the parameter type of the color parameter, the terminal 110 queries the color disk location conversion relationship corresponding to the determined parameter type.
S506,根据查询到的色盘定位参数转换关系,将获取到的颜色参数转换为色盘定位参数。S506. Convert the obtained color parameter into a color disk positioning parameter according to the queried color wheel positioning parameter conversion relationship.
在一个实施例中,终端110在查询到色盘定位参数转换关系后,根据色盘定位参数转换关系对颜色参数进行转换,通过转换得到色盘定位参数。色盘定位参数为颜色类型在色盘中的坐标参数。In an embodiment, after querying the color disk positioning parameter conversion relationship, the terminal 110 converts the color parameter according to the color disk positioning parameter conversion relationship, and obtains the color disk positioning parameter by conversion. The color wheel positioning parameter is the coordinate parameter of the color type in the color wheel.
在一个实施例中,色盘定位参数转换关系为颜色参数与色盘定位参数的对应关系表,对应关系表中存储着颜色参数以及与颜色参数对应的色盘定位参数。终端110在对应关系表中查询与获取到的颜色参数对应的色盘定位参数。In one embodiment, the color wheel positioning parameter conversion relationship is a correspondence relationship table between the color parameter and the color wheel positioning parameter, and the color relationship parameter and the color wheel positioning parameter corresponding to the color parameter are stored in the correspondence relationship table. The terminal 110 queries the color palette positioning parameter corresponding to the acquired color parameter in the correspondence table.
本实施例中,通过识别获取到的颜色参数的参数类型,根据识别到的参数类型将获取到的颜色参数转换为色盘定位参数,以确保根据颜色参数的参数类型将颜色参数转换为准确的色盘定位参数,从而提高了在色盘中选取颜色的准确性。In this embodiment, by identifying the parameter type of the obtained color parameter, the obtained color parameter is converted into a color disk positioning parameter according to the recognized parameter type, to ensure that the color parameter is converted into an accurate parameter according to the parameter type of the color parameter. The color wheel positioning parameters improve the accuracy of selecting colors in the color wheel.
如图6所示,在一个实施例中,提供一种编辑页面内容颜色修改装置600,该装置具体包括以下内容:修改指令获取模块602、拾色器展示模块604、颜色参数获取模块606、定位参数转换模块608、目标颜色定位模块610和内容颜色修改模块612。As shown in FIG. 6, in an embodiment, an edit page content color modification apparatus 600 is provided. The apparatus specifically includes the following: a modification instruction acquisition module 602, a color picker display module 604, a color parameter acquisition module 606, and positioning. The parameter conversion module 608, the target color localization module 610, and the content color modification module 612.
修改指令获取模块602,用于获取课件在线编辑页面中内容颜色修改指令。The modification instruction obtaining module 602 is configured to obtain a content color modification instruction in the online editing page of the courseware.
拾色器展示模块604,用于根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口。The color picker display module 604 is configured to display the color picker window in the courseware online editing page according to the content color modification instruction.
颜色参数获取模块606,用于获取拾色器窗口的参数输入框中输入的颜色参数。The color parameter obtaining module 606 is configured to acquire a color parameter input in a parameter input box of the color picker window.
定位参数转换模块608,用于将获取到的颜色参数转换为色盘定位参数。The positioning parameter conversion module 608 is configured to convert the acquired color parameter into a color disk positioning parameter.
目标颜色定位模块610,用于根据色盘定位参数在拾色器窗口中色盘中定位目标颜色。The target color positioning module 610 is configured to locate the target color in the color wheel in the color picker window according to the color wheel positioning parameter.
内容颜色修改模块612,用于将内容颜色修改指令中内容标识对应的内容修改为目标颜色。The content color modification module 612 is configured to modify the content corresponding to the content identifier in the content color modification instruction to the target color.
本实施例中,在获取到课件在线编辑页面中内容颜色修改指令后,根据内容颜色修改 指令在课件在线编辑页面中展示拾色器窗口,拾色器窗口中包括参数输入框和色盘。获取参数输入框中输入的颜色参数,将颜色参数转换为色盘定位参数,根据色盘定位参数在色盘中定位目标颜色,将需要进行颜色修改的内容修改为目标颜色。在课件在线编辑页面中展示拾色器窗口,可以根据输入框中的颜色参数在色盘中定位目标颜色,提供了更多的颜色供选择,提高了选取目标颜色的准确性,也提高了课件在线编辑页面中编辑内容的颜色标记准确率,避免了内容标记颜色的冲突。In this embodiment, after the content color modification instruction in the online editing page of the courseware is obtained, the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color. The color picker window is displayed in the online editing page of the courseware. The target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware. The color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
如图7所示,在一个实施例中,编辑页面内容颜色修改装置600具体还包括以下内容:数据请求生成模块614、数据请求发送模块616、页面数据接收模块618和编辑页面显示模块620。As shown in FIG. 7 , in one embodiment, the edit page content color modification apparatus 600 specifically includes the following contents: a data request generation module 614 , a data request sending module 616 , a page data receiving module 618 , and an edit page display module 620 .
数据请求生成模块614,用于根据输入的用户账号生成编辑页面数据请求。The data request generating module 614 is configured to generate an edit page data request according to the input user account.
数据请求发送模块616,用于将编辑页面数据请求发送至服务器。The data request sending module 616 is configured to send an edit page data request to the server.
页面数据接收模块618,用于接收服务器根据编辑页面数据请求返回的课件在线编辑页面数据。The page data receiving module 618 is configured to receive, by the server, online editing of the page data according to the courseware returned by the edit page data request.
编辑页面显示模块620,用于根据课件在线编辑页面数据在浏览器中显示课件在线编辑页面。The edit page display module 620 is configured to display the courseware online editing page in the browser according to the courseware online editing page data.
本实施例中,根据输入的用户账号生成编辑页面数据请求,确保服务器根据编辑页面数据请求返回课件在线编辑页面数据,保证了课件在线编辑页面数据的访问安全性。In this embodiment, the edit page data request is generated according to the input user account, and the server ensures that the server returns the online edit page data according to the edit page data request, thereby ensuring the access security of the courseware online editing page data.
在一个实施例中,修改指令获取模块602还用于在监听到课件在线编辑页面中的内容选中操作时,获取所选中内容的内容标识,并展示内容操作工具栏;在监听到内容操作工具栏中的颜色更改按钮被点击时,根据内容标识生成内容颜色修改指令。In an embodiment, the modification instruction acquisition module 602 is further configured to: when listening to the content selection operation in the courseware online editing page, obtain the content identifier of the selected content, and display the content operation toolbar; and listen to the content operation toolbar When the color change button in the middle is clicked, a content color modification instruction is generated according to the content identifier.
在一个实施例中,拾色器展示模块604还用于根据内容颜色修改指令从服务器查询拾色器绘制脚本;根据查询到的拾色器绘制脚本绘制拾色器窗口;将绘制的拾色器窗口展示在课件在线编辑页面中。In one embodiment, the color picker display module 604 is further configured to query the color picker drawing script from the server according to the content color modification instruction; draw a color picker window according to the finder color picker drawing script; the color picker to be drawn The window is displayed in the courseware online editing page.
如图8所示,在一个实施例中,编辑页面内容颜色修改装置600具体还包括以下内容:滑块位置获取模块622、颜色参数确定模块624和颜色参数添加模块626。As shown in FIG. 8 , in one embodiment, the edit page content color modification apparatus 600 specifically includes the following: a slider position acquisition module 622 , a color parameter determination module 624 , and a color parameter addition module 626 .
滑块位置获取模块622,用于在检测到拾色器窗口中颜色参数设置条的指针滑块滑动后,获取颜色参数设置条中的指针滑块位置。The slider position obtaining module 622 is configured to obtain a pointer slider position in the color parameter setting bar after detecting that the pointer slider of the color parameter setting bar in the color picker window slides.
颜色参数确定模块624,用于根据获取到的指针滑块位置确定颜色参数;a color parameter determining module 624, configured to determine a color parameter according to the obtained pointer slider position;
颜色参数添加模块626,用于将颜色参数添加到拾色器窗口的参数输入框中。A color parameter adding module 626 is configured to add a color parameter to a parameter input box of the color picker window.
本实施例中,在检测到拾色器窗口中颜色参数设置条的指针滑块滑动后,可以根据指针滑块在颜色参数设置条中的位置,确定相应的颜色参数,增加了颜色参数的输入方式,直接对指针滑块进行拖拽即可完成颜色参数的输入,提高了颜色参数的输入效率。In this embodiment, after detecting that the pointer slider of the color parameter setting bar in the color picker window slides, the corresponding color parameter may be determined according to the position of the pointer slider in the color parameter setting bar, and the input of the color parameter is added. In this way, the pointer parameter slider can be directly dragged to complete the input of the color parameter, and the input efficiency of the color parameter is improved.
在一个实施例中,定位参数转换模块608还用于识别获取到的颜色参数的参数类型;查询与参数类型对应的色盘定位参数转换关系;根据查询到的色盘定位参数转换关系,将获取到的颜色参数转换为色盘定位参数。In an embodiment, the positioning parameter conversion module 608 is further configured to identify the parameter type of the acquired color parameter; query the color wheel positioning parameter conversion relationship corresponding to the parameter type; and obtain the color disk positioning parameter conversion relationship according to the query The resulting color parameters are converted to color wheel positioning parameters.
本实施例中,通过识别获取到的颜色参数的参数类型,根据识别到的参数类型将获取到的颜色参数转换为色盘定位参数,以确保根据颜色参数的参数类型将颜色参数转换为准确的色盘定位参数,从而提高了在色盘中选取颜色的准确性。In this embodiment, by identifying the parameter type of the obtained color parameter, the obtained color parameter is converted into a color disk positioning parameter according to the recognized parameter type, to ensure that the color parameter is converted into an accurate parameter according to the parameter type of the color parameter. The color wheel positioning parameters improve the accuracy of selecting colors in the color wheel.
图9为一个实施例中图1编辑页面内容颜色修改系统中的终端110的内部结构示意图。如图9所示,该终端110包括通过系统总线连接的处理器、非易失性存储介质、存储器、网络接口、显示屏和输入装置。终端110的处理器用于提供计算和控制能力,支撑整个终端110的运行,存储器用于存储数据、代码指令等,网络接口用于与服务器120进行网络通信。存储器上存储有至少一个计算机指令,该计算机指令可被处理器执行,以实现本申请实施例中提供的适用于终端110的编辑页面内容颜色修改方法。存储器可包括磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等非易失性存储介质。例如,在一个实施例中,存储器包括非易失性存储介质及内存储器;非易失性存储介质存储有操作系统和计算机指令,该计算机指令可被处理器执行以实现上述的编辑页面内容颜色修改方法;内存储器为非易失性存储介质中的操作系统及计算机可执行指令提供高速缓存的运行环境。FIG. 9 is a schematic diagram showing the internal structure of the terminal 110 in the edit page content color modification system of FIG. 1 in an embodiment. As shown in FIG. 9, the terminal 110 includes a processor, a non-volatile storage medium, a memory, a network interface, a display screen, and an input device connected by a system bus. The processor of terminal 110 is used to provide computing and control capabilities to support the operation of the entire terminal 110, the memory is used to store data, code instructions, etc., and the network interface is used for network communication with server 120. At least one computer instruction is stored in the memory, and the computer instruction can be executed by the processor to implement the edit page content color modification method applicable to the terminal 110 provided in the embodiment of the present application. The memory may include a non-volatile storage medium such as a magnetic disk, an optical disk, or a read-only memory (ROM). For example, in one embodiment, the memory includes a non-volatile storage medium and an internal memory; the non-volatile storage medium stores an operating system and computer instructions executable by the processor to implement the edit page content color described above Modification method; the internal memory provides a cached operating environment for operating systems and computer executable instructions in a non-volatile storage medium.
本领域技术人员可以理解,图9中示出的结构,仅仅是与本申请方案相关的部分结构的示意图,并不构成对本申请方案所应用于其上的服务器的限定,具体的服务器可以包括比图9中所示更多或更少的部件,或者组合某些部件,或者具有不同的部件布置。It will be understood by those skilled in the art that the structure shown in FIG. 9 is only a schematic diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the server to which the solution of the present application is applied. The specific server may include More or fewer components are shown in Figure 9, or some components are combined, or have different component arrangements.
本申请实施例提出了一种终端,该终端包括一系列存储于存储器上的计算机指令,当该计算机指令被处理器执行时,可以实现本申请各实施例提出的编辑页面内容颜色修改方法。在一些实施例中,基于该计算机指令各部分所实现的特定的操作。The embodiment of the present application provides a terminal, which includes a series of computer instructions stored in a memory. When the computer instruction is executed by the processor, the method for modifying the content color of the edit page proposed by the embodiments of the present application may be implemented. In some embodiments, the particular operations implemented by the various portions of the computer instructions are based.
在一个实施例中,终端包括存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机指令,所述处理器执行所述计算机指令时实现以下步骤:获取课件在线编辑页面中内容颜色修改指令;根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口;获取拾色器窗口的参数输入框中输入的颜色参数;将获取到的颜色参数转换为色盘定位参数;根据色盘定位参数在拾色器窗口中色盘中定位目标颜色;将内容颜色修改指令中内容标识对应的内容修改为目标颜色。In one embodiment, a terminal includes a memory, a processor, and computer instructions stored on the memory and executable on the processor, the processor executing the computer instructions to implement the following steps: obtaining courseware online editing The content color modification instruction in the page; displaying the color picker window in the online editing page of the courseware according to the content color modification instruction; acquiring the color parameter input in the parameter input box of the color picker window; converting the obtained color parameter into a color wheel positioning Parameter; locate the target color in the color wheel in the color picker window according to the color wheel positioning parameter; modify the content corresponding to the content identifier in the content color modification instruction to the target color.
在一个实施例中,获取课件在线编辑页面中内容颜色修改指令之前,所述处理器执行所述计算机指令时还实现以下步骤:根据输入的用户账号生成编辑页面数据请求;将编辑页面数据请求发送至服务器;接收服务器根据编辑页面数据请求返回的课件在线编辑页面数据;根据课件在线编辑页面数据在浏览器中显示课件在线编辑页面。In one embodiment, before acquiring the content color modification instruction in the online editing page of the courseware, the processor further executes the following steps: generating an edit page data request according to the input user account; and sending the edit page data request To the server; the receiving server edits the page data online according to the courseware returned by the edit page data request; and displays the courseware online editing page in the browser according to the courseware online editing page data.
在一个实施例中,获取课件在线编辑页面中内容颜色修改指令,包括:在监听到课件在线编辑页面中的内容选中操作时,获取所选中内容的内容标识,并展示内容操作工具栏;在监听到内容操作工具栏中的颜色更改按钮被点击时,根据内容标识生成内容颜色修改指 令。In an embodiment, obtaining a content color modification instruction in the online editing page of the courseware includes: obtaining a content identifier of the selected content when displaying the content selection operation in the online editing page of the courseware, and displaying the content operation toolbar; When the color change button in the content operation toolbar is clicked, a content color modification instruction is generated according to the content identification.
在一个实施例中,根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口,包括:根据内容颜色修改指令从服务器查询拾色器绘制脚本;根据查询到的拾色器绘制脚本绘制拾色器窗口;将绘制的拾色器窗口展示在课件在线编辑页面中。In one embodiment, the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, including: querying the color picker drawing script from the server according to the content color modification instruction; drawing the drawing according to the queryed color picker drawing script The color shader window; the color picker window to be drawn is displayed in the courseware online editing page.
在一个实施例中,获取拾色器窗口的参数输入框中输入的颜色参数之前,所述处理器执行所述计算机指令时还实现以下步骤:在检测到拾色器窗口中颜色参数设置条的指针滑块滑动后,获取颜色参数设置条中的指针滑块位置;根据获取到的指针滑块位置确定颜色参数;将颜色参数添加到拾色器窗口的参数输入框中。In one embodiment, before acquiring the color parameter input in the parameter input box of the color picker window, the processor further implements the following steps when the computer instruction is executed: when the color parameter setting bar in the color picker window is detected After the pointer slider slides, the position of the pointer slider in the color parameter setting bar is obtained; the color parameter is determined according to the obtained position of the pointer slider; the color parameter is added to the parameter input box of the color picker window.
在一个实施例中,将获取到的颜色参数转换为色盘定位参数,包括:识别获取到的颜色参数的参数类型;查询与参数类型对应的色盘定位参数转换关系;根据查询到的色盘定位参数转换关系,将获取到的颜色参数转换为色盘定位参数。In one embodiment, converting the obtained color parameter into a color disk positioning parameter comprises: identifying a parameter type of the acquired color parameter; querying a color wheel positioning parameter conversion relationship corresponding to the parameter type; and according to the queried color wheel The parameter conversion relationship is located, and the obtained color parameter is converted into a color wheel positioning parameter.
本实施例中,在获取到课件在线编辑页面中内容颜色修改指令后,根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口,拾色器窗口中包括参数输入框和色盘。获取参数输入框中输入的颜色参数,将颜色参数转换为色盘定位参数,根据色盘定位参数在色盘中定位目标颜色,将需要进行颜色修改的内容修改为目标颜色。在课件在线编辑页面中展示拾色器窗口,可以根据输入框中的颜色参数在色盘中定位目标颜色,提供了更多的颜色供选择,提高了选取目标颜色的准确性,也提高了课件在线编辑页面中编辑内容的颜色标记准确率,避免了内容标记颜色的冲突。In this embodiment, after the content color modification instruction in the online editing page of the courseware is acquired, the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color. The color picker window is displayed in the online editing page of the courseware. The target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware. The color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
一种非易失性计算机可读存储介质,其上存储有计算机指令,所述计算机指令被处理器执行时,使得所述处理器执行以下步骤:获取课件在线编辑页面中内容颜色修改指令;根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口;获取拾色器窗口的参数输入框中输入的颜色参数;将获取到的颜色参数转换为色盘定位参数;根据色盘定位参数在拾色器窗口中色盘中定位目标颜色;将内容颜色修改指令中内容标识对应的内容修改为目标颜色。A non-transitory computer readable storage medium having stored thereon computer instructions, the computer instructions being executed by a processor, causing the processor to perform the steps of: acquiring a content color modification instruction in a courseware online editing page; The content color modification instruction displays the color picker window in the online editing page of the courseware; obtains the color parameter input in the parameter input box of the color picker window; converts the obtained color parameter into a color wheel positioning parameter; according to the color wheel positioning parameter The target color is positioned in the color wheel in the color picker window; the content corresponding to the content identifier in the content color modification instruction is modified to the target color.
在一个实施例中,获取课件在线编辑页面中内容颜色修改指令之前,所述处理器还执行以下步骤:根据输入的用户账号生成编辑页面数据请求;将编辑页面数据请求发送至服务器;接收服务器根据编辑页面数据请求返回的课件在线编辑页面数据;根据课件在线编辑页面数据在浏览器中显示课件在线编辑页面。In one embodiment, before acquiring the content color modification instruction in the courseware online editing page, the processor further performs the steps of: generating an edit page data request according to the input user account; sending the edit page data request to the server; and receiving the server according to The courseware data returned by the editing page data request is edited online; the courseware online editing page is displayed in the browser according to the courseware online editing page data.
在一个实施例中,获取课件在线编辑页面中内容颜色修改指令,包括:在监听到课件在线编辑页面中的内容选中操作时,获取所选中内容的内容标识,并展示内容操作工具栏;在监听到内容操作工具栏中的颜色更改按钮被点击时,根据内容标识生成内容颜色修改指令。In an embodiment, obtaining a content color modification instruction in the online editing page of the courseware includes: obtaining a content identifier of the selected content when displaying the content selection operation in the online editing page of the courseware, and displaying the content operation toolbar; When the color change button in the content operation toolbar is clicked, a content color modification instruction is generated according to the content identification.
在一个实施例中,根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口,包括:根据内容颜色修改指令从服务器查询拾色器绘制脚本;根据查询到的拾色器绘制脚本 绘制拾色器窗口;将绘制的拾色器窗口展示在课件在线编辑页面中。In one embodiment, the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, including: querying the color picker drawing script from the server according to the content color modification instruction; drawing the drawing according to the queryed color picker drawing script The color shader window; the color picker window to be drawn is displayed in the courseware online editing page.
在一个实施例中,获取拾色器窗口的参数输入框中输入的颜色参数之前,所述处理器还执行以下步骤:在检测到拾色器窗口中颜色参数设置条的指针滑块滑动后,获取颜色参数设置条中的指针滑块位置;根据获取到的指针滑块位置确定颜色参数;将颜色参数添加到拾色器窗口的参数输入框中。In one embodiment, before acquiring the color parameter input in the parameter input box of the color picker window, the processor further performs the following steps: after detecting that the pointer slider of the color parameter setting bar in the color picker window slides, Get the position of the pointer slider in the color parameter setting bar; determine the color parameter according to the obtained position of the pointer slider; add the color parameter to the parameter input box of the color picker window.
在一个实施例中,将获取到的颜色参数转换为色盘定位参数,包括:识别获取到的颜色参数的参数类型;查询与参数类型对应的色盘定位参数转换关系;根据查询到的色盘定位参数转换关系,将获取到的颜色参数转换为色盘定位参数。In one embodiment, converting the obtained color parameter into a color disk positioning parameter comprises: identifying a parameter type of the acquired color parameter; querying a color wheel positioning parameter conversion relationship corresponding to the parameter type; and according to the queried color wheel The parameter conversion relationship is located, and the obtained color parameter is converted into a color wheel positioning parameter.
本实施例中,在获取到课件在线编辑页面中内容颜色修改指令后,根据内容颜色修改指令在课件在线编辑页面中展示拾色器窗口,拾色器窗口中包括参数输入框和色盘。获取参数输入框中输入的颜色参数,将颜色参数转换为色盘定位参数,根据色盘定位参数在色盘中定位目标颜色,将需要进行颜色修改的内容修改为目标颜色。在课件在线编辑页面中展示拾色器窗口,可以根据输入框中的颜色参数在色盘中定位目标颜色,提供了更多的颜色供选择,提高了选取目标颜色的准确性,也提高了课件在线编辑页面中编辑内容的颜色标记准确率,避免了内容标记颜色的冲突。In this embodiment, after the content color modification instruction in the online editing page of the courseware is acquired, the color picker window is displayed in the online editing page of the courseware according to the content color modification instruction, and the color picker window includes a parameter input box and a color wheel. Get the color parameter input in the parameter input box, convert the color parameter into the color wheel positioning parameter, locate the target color in the color wheel according to the color disk positioning parameter, and modify the content that needs to be color modified to the target color. The color picker window is displayed in the online editing page of the courseware. The target color can be positioned in the color wheel according to the color parameters in the input box, providing more colors for selection, improving the accuracy of selecting the target color, and improving the courseware. The color mark accuracy of the edited content in the online editing page avoids the conflict of the content mark color.
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机指令来指令相关的硬件来完成,所述的程序可存储于一非易失性计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)等。One of ordinary skill in the art can understand that all or part of the process of implementing the above embodiments can be completed by computer instructions to instruct related hardware, and the program can be stored in a non-volatile computer readable storage medium. Wherein, the program, when executed, may include the flow of an embodiment of the methods as described above. The storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or the like.
以上所述实施例的各技术特征可以进行任意的组合,为使描述简洁,未对上述实施例中的各个技术特征所有可能的组合都进行描述,然而,只要这些技术特征的组合不存在矛盾,都应当认为是本说明书记载的范围。The technical features of the above-described embodiments may be arbitrarily combined. For the sake of brevity of description, all possible combinations of the technical features in the above embodiments are not described. However, as long as there is no contradiction between the combinations of these technical features, All should be considered as the scope of this manual.
以上所述实施例仅表达了本申请的几种实施方式,其描述较为具体和详细,但并不能因此而理解为对发明专利范围的限制。应当指出的是,对于本领域的普通技术人员来说,在不脱离本申请构思的前提下,还可以做出若干变形和改进,这些都属于本申请的保护范围。因此,本申请专利的保护范围应以所附权利要求为准。The above-mentioned embodiments are merely illustrative of several embodiments of the present application, and the description thereof is more specific and detailed, but is not to be construed as limiting the scope of the invention. It should be noted that a number of variations and modifications may be made by those skilled in the art without departing from the spirit and scope of the present application. Therefore, the scope of the invention should be determined by the appended claims.

Claims (20)

  1. 一种编辑页面内容颜色修改方法,包括:A method for modifying the color of an edit page content, including:
    获取课件在线编辑页面中内容颜色修改指令;Obtain the content color modification instruction in the online editing page of the courseware;
    根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;Displaying a color picker window in the online editing page of the courseware according to the content color modification instruction;
    获取所述拾色器窗口的参数输入框中输入的颜色参数;Obtaining a color parameter input in a parameter input box of the color picker window;
    将获取到的颜色参数转换为色盘定位参数;Converting the obtained color parameters into color wheel positioning parameters;
    根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及Positioning a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
    将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。Modifying content corresponding to the content identifier in the content color modification instruction to the target color.
  2. 根据权利要求1所述的方法,其特征在于,所述获取课件在线编辑页面中内容颜色修改指令之前,还包括:The method according to claim 1, wherein before the obtaining the content color modification instruction in the online editing page of the courseware, the method further comprises:
    根据输入的用户账号生成编辑页面数据请求;Generating an edit page data request according to the input user account;
    将所述编辑页面数据请求发送至服务器;Sending the edit page data request to the server;
    接收所述服务器根据所述编辑页面数据请求返回的课件在线编辑页面数据;及Receiving, by the server, online editing page data according to the courseware returned by the edit page data request; and
    根据所述课件在线编辑页面数据在浏览器中显示课件在线编辑页面。The courseware online editing page is displayed in the browser according to the courseware online editing page data.
  3. 根据权利要求2所述的方法,其特征在于,所述获取课件在线编辑页面中内容颜色修改指令,包括:The method according to claim 2, wherein the obtaining a content color modification instruction in the online editing page of the courseware comprises:
    在监听到所述课件在线编辑页面中的内容选中操作时,获取所选中内容的内容标识,并展示内容操作工具栏;及When the content selection operation in the online editing page of the courseware is monitored, the content identifier of the selected content is obtained, and the content operation toolbar is displayed;
    在监听到所述内容操作工具栏中的颜色更改按钮被点击时,根据所述内容标识生成内容颜色修改指令。When the color change button in the content operation toolbar is detected to be clicked, a content color modification instruction is generated according to the content identification.
  4. 根据权利要求3所述的方法,其特征在于,所述根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口,包括:The method according to claim 3, wherein the displaying the color picker window in the courseware online editing page according to the content color modification instruction comprises:
    根据所述内容颜色修改指令从服务器查询拾色器绘制脚本;Querying a color picker drawing script from a server according to the content color modification instruction;
    根据查询到的拾色器绘制脚本绘制拾色器窗口;及Drawing a color picker window according to the finder color drawing script; and
    将绘制的拾色器窗口展示在所述课件在线编辑页面中。The drawn color picker window is displayed on the courseware online editing page.
  5. 根据权利要求4所述的方法,其特征在于,所述获取所述拾色器窗口的参数输入框中输入的颜色参数之前,还包括:The method according to claim 4, wherein before the obtaining the color parameter input in the parameter input box of the color picker window, the method further comprises:
    在检测到所述拾色器窗口中颜色参数设置条的指针滑块滑动后,获取所述颜色参数设置条中的指针滑块位置;After detecting that the pointer slider of the color parameter setting bar in the color picker window slides, acquiring a pointer slider position in the color parameter setting bar;
    根据获取到的指针滑块位置确定所述颜色参数;及Determining the color parameter according to the obtained position of the pointer slider; and
    将所述颜色参数添加到所述拾色器窗口的参数输入框中。The color parameter is added to the parameter input box of the color picker window.
  6. 根据权利要求5所述的方法,其特征在于,所述将获取到的颜色参数转换为色盘定位参数,包括:The method according to claim 5, wherein the converting the acquired color parameters into color wheel positioning parameters comprises:
    识别获取到的颜色参数的参数类型;Identify the parameter type of the obtained color parameter;
    查询与所述参数类型对应的色盘定位参数转换关系;及Querying a color wheel positioning parameter conversion relationship corresponding to the parameter type; and
    根据查询到的色盘定位参数转换关系,将所述获取到的颜色参数转换为色盘定位参数。And converting the acquired color parameter into a color disk positioning parameter according to the queried color wheel positioning parameter conversion relationship.
  7. 一种编辑页面内容颜色修改装置,包括:An editing page content color modification device, comprising:
    修改指令获取模块,用于获取课件在线编辑页面中内容颜色修改指令;Modifying an instruction acquisition module for acquiring a content color modification instruction in the online editing page of the courseware;
    拾色器展示模块,用于根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;a color picker display module, configured to display a color picker window in the online editing page of the courseware according to the content color modification instruction;
    颜色参数获取模块,用于获取所述拾色器窗口的参数输入框中输入的颜色参数;a color parameter obtaining module, configured to acquire a color parameter input in a parameter input box of the color picker window;
    定位参数转换模块,用于将获取到的颜色参数转换为色盘定位参数;a positioning parameter conversion module, configured to convert the obtained color parameter into a color wheel positioning parameter;
    目标颜色定位模块,用于根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及a target color positioning module, configured to locate a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
    内容颜色修改模块,用于将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。And a content color modification module, configured to modify content corresponding to the content identifier in the content color modification instruction to the target color.
  8. 根据权利要求7所述的装置,其特征在于,所述装置还包括:The device according to claim 7, wherein the device further comprises:
    数据请求生成模块,用于根据输入的用户账号生成编辑页面数据请求;a data request generating module, configured to generate an edit page data request according to the input user account;
    数据请求发送模块,用于将所述编辑页面数据请求发送至服务器;a data request sending module, configured to send the edit page data request to a server;
    页面数据接收模块,用于接收所述服务器根据所述编辑页面数据请求返回的课件在线编辑页面数据;及a page data receiving module, configured to receive online editing page data of the courseware returned by the server according to the edit page data request; and
    编辑页面显示模块,用于根据所述课件在线编辑页面数据在浏览器中显示课件在线编辑页面。The editing page display module is configured to display the courseware online editing page in the browser according to the courseware online editing page data.
  9. 一种终端,包括存储器和一个或多个处理器,所述存储器中存储有计算机可读指令,所述计算机可读指令被所述处理器执行时,使得所述一个或多个处理器执行以下步骤:A terminal comprising a memory and one or more processors having stored therein computer readable instructions, the computer readable instructions being executed by the processor, causing the one or more processors to perform the following step:
    获取课件在线编辑页面中内容颜色修改指令;Obtain the content color modification instruction in the online editing page of the courseware;
    根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;Displaying a color picker window in the online editing page of the courseware according to the content color modification instruction;
    获取所述拾色器窗口的参数输入框中输入的颜色参数;Obtaining a color parameter input in a parameter input box of the color picker window;
    将获取到的颜色参数转换为色盘定位参数;Converting the obtained color parameters into color wheel positioning parameters;
    根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及Positioning a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
    将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。Modifying content corresponding to the content identifier in the content color modification instruction to the target color.
  10. 根据权利要求9所述的终端,其特征在于,所述获取课件在线编辑页面中内容颜色修改指令之前,所述处理器还执行以下步骤:The terminal according to claim 9, wherein the processor further performs the following steps before acquiring the content color modification instruction in the online editing page of the courseware:
    根据输入的用户账号生成编辑页面数据请求;Generating an edit page data request according to the input user account;
    将所述编辑页面数据请求发送至服务器;Sending the edit page data request to the server;
    接收所述服务器根据所述编辑页面数据请求返回的课件在线编辑页面数据;及Receiving, by the server, online editing page data according to the courseware returned by the edit page data request; and
    根据所述课件在线编辑页面数据在浏览器中显示课件在线编辑页面。The courseware online editing page is displayed in the browser according to the courseware online editing page data.
  11. 根据权利要求10所述的终端,其特征在于,所述获取课件在线编辑页面中内容颜色修改指令,包括:The terminal according to claim 10, wherein the obtaining a content color modification instruction in the online editing page of the courseware comprises:
    在监听到所述课件在线编辑页面中的内容选中操作时,获取所选中内容的内容标识,并展示内容操作工具栏;及When the content selection operation in the online editing page of the courseware is monitored, the content identifier of the selected content is obtained, and the content operation toolbar is displayed;
    在监听到所述内容操作工具栏中的颜色更改按钮被点击时,根据所述内容标识生成内容颜色修改指令。When the color change button in the content operation toolbar is detected to be clicked, a content color modification instruction is generated according to the content identification.
  12. 根据权利要求11所述的终端,其特征在于,所述根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口,包括:The terminal according to claim 11, wherein the displaying the color picker window in the online editing page of the courseware according to the content color modification instruction comprises:
    根据所述内容颜色修改指令从服务器查询拾色器绘制脚本;Querying a color picker drawing script from a server according to the content color modification instruction;
    根据查询到的拾色器绘制脚本绘制拾色器窗口;及Drawing a color picker window according to the finder color drawing script; and
    将绘制的拾色器窗口展示在所述课件在线编辑页面中。The drawn color picker window is displayed on the courseware online editing page.
  13. 根据权利要求12所述的终端,其特征在于,所述获取所述拾色器窗口的参数输入框中输入的颜色参数之前,所述处理器还执行以下步骤:The terminal according to claim 12, wherein the processor further performs the following steps before acquiring the color parameter input in the parameter input box of the color picker window:
    在检测到所述拾色器窗口中颜色参数设置条的指针滑块滑动后,获取所述颜色参数设置条中的指针滑块位置;After detecting that the pointer slider of the color parameter setting bar in the color picker window slides, acquiring a pointer slider position in the color parameter setting bar;
    根据获取到的指针滑块位置确定所述颜色参数;及Determining the color parameter according to the obtained position of the pointer slider; and
    将所述颜色参数添加到所述拾色器窗口的参数输入框中。The color parameter is added to the parameter input box of the color picker window.
  14. 根据权利要求13所述的终端,其特征在于,所述将获取到的颜色参数转换为色盘定位参数,包括:The terminal according to claim 13, wherein the converting the acquired color parameter into a color disk positioning parameter comprises:
    识别获取到的颜色参数的参数类型;Identify the parameter type of the obtained color parameter;
    查询与所述参数类型对应的色盘定位参数转换关系;及Querying a color wheel positioning parameter conversion relationship corresponding to the parameter type; and
    根据查询到的色盘定位参数转换关系,将所述获取到的颜色参数转换为色盘定位参数。And converting the acquired color parameter into a color disk positioning parameter according to the queried color wheel positioning parameter conversion relationship.
  15. 一种非易失性计算机可读存储介质,其上存储有计算机指令,其特征在于,所述计算机指令被处理器执行时实现以下步骤:A non-transitory computer readable storage medium having stored thereon computer instructions, wherein the computer instructions, when executed by a processor, implement the following steps:
    获取课件在线编辑页面中内容颜色修改指令;Obtain the content color modification instruction in the online editing page of the courseware;
    根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口;Displaying a color picker window in the online editing page of the courseware according to the content color modification instruction;
    获取所述拾色器窗口的参数输入框中输入的颜色参数;Obtaining a color parameter input in a parameter input box of the color picker window;
    将获取到的颜色参数转换为色盘定位参数;Converting the obtained color parameters into color wheel positioning parameters;
    根据所述色盘定位参数在所述拾色器窗口中色盘中定位目标颜色;及Positioning a target color in the color wheel in the color picker window according to the color wheel positioning parameter; and
    将所述内容颜色修改指令中内容标识对应的内容修改为所述目标颜色。Modifying content corresponding to the content identifier in the content color modification instruction to the target color.
  16. 根据权利要求15所述的存储介质,其特征在于,所述获取课件在线编辑页面中内容颜色修改指令之前,所述计算机指令被处理器执行时还实现以下步骤:The storage medium according to claim 15, wherein before the obtaining the content color modification instruction in the online editing page of the courseware, the computer instruction is further executed by the processor to:
    根据输入的用户账号生成编辑页面数据请求;Generating an edit page data request according to the input user account;
    将所述编辑页面数据请求发送至服务器;Sending the edit page data request to the server;
    接收所述服务器根据所述编辑页面数据请求返回的课件在线编辑页面数据;及Receiving, by the server, online editing page data according to the courseware returned by the edit page data request; and
    根据所述课件在线编辑页面数据在浏览器中显示课件在线编辑页面。The courseware online editing page is displayed in the browser according to the courseware online editing page data.
  17. 根据权利要求16所述的存储介质,其特征在于,所述获取课件在线编辑页面中内容颜色修改指令,包括:The storage medium according to claim 16, wherein the obtaining a content color modification instruction in the online editing page of the courseware comprises:
    在监听到所述课件在线编辑页面中的内容选中操作时,获取所选中内容的内容标识,并展示内容操作工具栏;及When the content selection operation in the online editing page of the courseware is monitored, the content identifier of the selected content is obtained, and the content operation toolbar is displayed;
    在监听到所述内容操作工具栏中的颜色更改按钮被点击时,根据所述内容标识生成内容颜色修改指令。When the color change button in the content operation toolbar is detected to be clicked, a content color modification instruction is generated according to the content identification.
  18. 根据权利要求17所述的存储介质,其特征在于,所述根据所述内容颜色修改指令在所述课件在线编辑页面中展示拾色器窗口,包括:The storage medium according to claim 17, wherein the displaying the color picker window in the online editing page of the courseware according to the content color modification instruction comprises:
    根据所述内容颜色修改指令从服务器查询拾色器绘制脚本;Querying a color picker drawing script from a server according to the content color modification instruction;
    根据查询到的拾色器绘制脚本绘制拾色器窗口;及Drawing a color picker window according to the finder color drawing script; and
    将绘制的拾色器窗口展示在所述课件在线编辑页面中。The drawn color picker window is displayed on the courseware online editing page.
  19. 根据权利要求18所述的存储介质,其特征在于,所述获取所述拾色器窗口的参数输入框中输入的颜色参数之前,所述计算机指令被处理器执行时还实现以下步骤:The storage medium according to claim 18, wherein before the obtaining the color parameter input in the parameter input box of the color picker window, the computer instruction is further executed by the processor to:
    在检测到所述拾色器窗口中颜色参数设置条的指针滑块滑动后,获取所述颜色参数设置条中的指针滑块位置;After detecting that the pointer slider of the color parameter setting bar in the color picker window slides, acquiring a pointer slider position in the color parameter setting bar;
    根据获取到的指针滑块位置确定所述颜色参数;及Determining the color parameter according to the obtained position of the pointer slider; and
    将所述颜色参数添加到所述拾色器窗口的参数输入框中。The color parameter is added to the parameter input box of the color picker window.
  20. 根据权利要求19所述的存储介质,其特征在于,所述将获取到的颜色参数转换为色盘定位参数,包括:The storage medium according to claim 19, wherein the converting the acquired color parameter into a color wheel positioning parameter comprises:
    识别获取到的颜色参数的参数类型;Identify the parameter type of the obtained color parameter;
    查询与所述参数类型对应的色盘定位参数转换关系;及Querying a color wheel positioning parameter conversion relationship corresponding to the parameter type; and
    根据查询到的色盘定位参数转换关系,将所述获取到的颜色参数转换为色盘定位参数。And converting the acquired color parameter into a color disk positioning parameter according to the queried color wheel positioning parameter conversion relationship.
PCT/CN2018/077102 2017-12-12 2018-02-24 Method and apparatus for altering color of editing page content, terminal, and storage medium WO2019114133A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201711316896.4A CN108052262A (en) 2017-12-12 2017-12-12 Edit page content color amending method, device, terminal and storage medium
CN201711316896.4 2017-12-12

Publications (1)

Publication Number Publication Date
WO2019114133A1 true WO2019114133A1 (en) 2019-06-20

Family

ID=62124091

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2018/077102 WO2019114133A1 (en) 2017-12-12 2018-02-24 Method and apparatus for altering color of editing page content, terminal, and storage medium

Country Status (2)

Country Link
CN (1) CN108052262A (en)
WO (1) WO2019114133A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN109460521A (en) * 2018-09-18 2019-03-12 平安科技(深圳)有限公司 Picture editing method, device, medium and computer equipment in web page

Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105324763A (en) * 2013-06-24 2016-02-10 西姆普雷斯瑞士有限公司 System, method and user interface for designing customizable products from a mobile device
CN106033305A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Screen color picking method and device
CN106648659A (en) * 2016-12-22 2017-05-10 杭州铜板街互联网金融信息服务有限公司 Webpage manufacture method and system
CN106970739A (en) * 2017-03-13 2017-07-21 广州视源电子科技股份有限公司 A kind of method and its system for calling application function by global tool suspension

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105760374A (en) * 2014-12-15 2016-07-13 阿里巴巴集团控股有限公司 Online page color matching method and device
CN107247693A (en) * 2017-06-05 2017-10-13 广东小天才科技有限公司 A kind of method and system of color adjustment

Patent Citations (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN105324763A (en) * 2013-06-24 2016-02-10 西姆普雷斯瑞士有限公司 System, method and user interface for designing customizable products from a mobile device
CN106033305A (en) * 2015-03-20 2016-10-19 广州金山移动科技有限公司 Screen color picking method and device
CN106648659A (en) * 2016-12-22 2017-05-10 杭州铜板街互联网金融信息服务有限公司 Webpage manufacture method and system
CN106970739A (en) * 2017-03-13 2017-07-21 广州视源电子科技股份有限公司 A kind of method and its system for calling application function by global tool suspension

Also Published As

Publication number Publication date
CN108052262A (en) 2018-05-18

Similar Documents

Publication Publication Date Title
US10824691B2 (en) Page rendering method, device, and data storage medium
CN107665233B (en) Database data processing method and device, computer equipment and storage medium
CN110955416A (en) Interface document generation method, device, equipment and computer storage medium
US20150128017A1 (en) Enabling interactive screenshots within collaborative applications
US10175954B2 (en) Method of processing big data, including arranging icons in a workflow GUI by a user, checking process availability and syntax, converting the workflow into execution code, monitoring the workflow, and displaying associated information
CN110609965B (en) Page display method, device and storage medium
JP7076471B2 (en) File transmission in instant communication applications
US20190050376A1 (en) Automatic value formatting based on intrinsic structural semantics
US20220414971A1 (en) Method of processing information, method of rendering image, and electronic device
WO2020235085A1 (en) Operation log visualization device, operation log visualization method, and operation log visualization program
US9170714B2 (en) Mixed type text extraction and distribution
CN110727417B (en) Data processing method and device
TW201528178A (en) Method, apparatus, and system for communicating and presenting product information
CN110968314B (en) Page generation method and device
JP2020522043A5 (en)
WO2023179549A1 (en) Document block sharing method, apparatus and system, and storage medium
WO2019019768A1 (en) Method and apparatus for printing policy, storage medium and computer device
CN116450202A (en) Page configuration method, page configuration device, computer equipment and computer readable storage medium
CN109871205B (en) Interface code adjustment method, device, computer device and storage medium
JP2021006982A (en) Method and device for determining character color
WO2019114133A1 (en) Method and apparatus for altering color of editing page content, terminal, and storage medium
WO2019052143A1 (en) Jsx file generation method and apparatus, storage medium and computer device
CN113590564B (en) Data storage method, device, electronic equipment and storage medium
CN115118714A (en) Data sharing method, system and device, terminal device and storage medium
CN109657184B (en) Rich text processing method, rich text processing device, server and computer readable medium

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 18889266

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22.09.2020)

122 Ep: pct application non-entry in european phase

Ref document number: 18889266

Country of ref document: EP

Kind code of ref document: A1