HTML preprocessors can make writing HTML more powerful or convenient. For instance, Markdown is designed to be easier to write and read for text documents and you could write a loop in Pug.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. So you don't have access to higher-up elements like the <html>
tag. If you want to add classes there that can affect the whole document, this is the place to do it.
In CodePen, whatever you write in the HTML editor is what goes within the <body>
tags in a basic HTML5 template. If you need things in the <head>
of the document, put that code here.
The resource you are linking to is using the 'http' protocol, which may not work when the browser is using https.
CSS preprocessors help make authoring CSS easier. All of them offer things like variables and mixins to provide convenient abstractions.
It's a common practice to apply CSS to a page that styles elements such that they are consistent across all browsers. We offer two of the most popular choices: normalize.css and a reset. Or, choose Neither and nothing will be applied.
To get the best cross-browser support, it is a common practice to apply vendor prefixes to CSS properties and values that require them to work. For instance -webkit-
or -moz-
.
We offer two popular choices: Autoprefixer (which processes your CSS server-side) and -prefix-free (which applies prefixes via a script, client-side).
Any URLs added here will be added as <link>
s in order, and before the CSS in the editor. You can use the CSS from another Pen by using its URL and the proper URL extension.
You can apply CSS to your Pen from any stylesheet on the web. Just put a URL to it here and we'll apply it, in the order you have them, before the CSS in the Pen itself.
You can also link to another Pen here (use the .css
URL Extension) and we'll pull the CSS from that Pen and include it. If it's using a matching preprocessor, use the appropriate URL Extension and we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
JavaScript preprocessors can help make authoring JavaScript easier and more convenient.
Babel includes JSX processing.
Any URL's added here will be added as <script>
s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.
You can apply a script from anywhere on the web to your Pen. Just put a URL to it here and we'll add it, in the order you have them, before the JavaScript in the Pen itself.
If the script you link to has the file extension of a preprocessor, we'll attempt to process it before applying.
You can also link to another Pen here, and we'll pull the JavaScript from that Pen and include it. If it's using a matching preprocessor, we'll combine the code before preprocessing, so you can use the linked Pen as a true dependency.
Search for and use JavaScript packages from npm here. By selecting a package, an import
statement will be added to the top of the JavaScript editor for this package.
Using packages here is powered by esm.sh, which makes packages from npm not only available on a CDN, but prepares them for native JavaScript ESM usage.
All packages are different, so refer to their docs for how they work.
If you're using React / ReactDOM, make sure to turn on Babel for the JSX processing.
If active, Pens will autosave every 30 seconds after being saved once.
If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.
If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.
Visit your global Editor Settings.
<link href="https://cdn.webdatarocks.com/latest/webdatarocks.min.css" rel="stylesheet"/>
<script src="https://cdn.webdatarocks.com/latest/webdatarocks.toolbar.min.js"></script>
<script src="https://cdn.webdatarocks.com/latest/webdatarocks.js"></script>
<div id="wdr-component"></div>
<div id="wdr-component1"></div>
var pivot = new WebDataRocks({
container: "#wdr-component",
toolbar: true,
height: 490,
global: {
// replace this path with the path to your own translated file
localization: localizationFile()
},
report: "https://cdn.webdatarocks.com/reports/report.json"
});
var pivot1 = new WebDataRocks({
container: "#wdr-component1",
toolbar: true,
height: 490,
global: {
// replace this path with the path to your own translated file
localization: localizationFile()
},
report: "https://cdn.webdatarocks.com/reports/report.json"
});
function localizationFile(){
return {
"fieldsList": {
"flatHierarchyBox": "Selecione e arranje as colunas",
"hierarchyBox": "Arraste as dimensões",
"filterBox": "Solte e arranje os filtros",
"rowBox": "Solte e arranje as linhas",
"columnBox": "Solte e arranje as colunas",
"measureBox": "Solte e arranje ",
"values": "Valores",
"addCalculatedMeasure": "Adicionar valores calculados",
"expandAll": "Expandir tudo",
"collapseAll": "Retrair tudo",
"formulasGroupName": "Valores calculados",
"allFields": "Todos os campos",
"rows": "Linhas",
"columns": "Colunas",
"filters": "Filtros",
"dropField": "Solte os campos aqui",
"title": "Campos",
"subtitle": "Arraste e solte os campos para arranjar"
},
"filter": {
"all": "Todos",
"multipleItems": "Ítens múltiplos",
"selectAll": "Selecionar tudo",
"selectAllResults": "Selecionar todos os resultados",
"top": "Superior",
"bottom": "Inferior",
"ascSort": "Az",
"descSort": "zA",
"topX": "Top 10",
"clearTopX": "Limpar",
"measuresPrompt": "Escolha os valores",
"search": "Procurar",
"amountSelected": "{0} de {1} selecionado(s)",
"amountFound": "{0} de {1} encontrados estão selecionados",
"sort": "Ordenar:",
"addGroup": "Adicionar grupo",
"groupName": "Grupo 1",
"ungroup": "Desagrupar"
},
"drillThrough": {
"title": "Detalhes",
"row": "Linha: <b>{0}</b>",
"column": "Coluna: <b>{0}</b>",
"value": "{0}: <b>{1}</b>"
},
"calculatedView": {
"title": "Valores calculados",
"measureBox": "Arraste os valores para a fórmula",
"measureName": "Nome do valor",
"formula": "Fórmula",
"formulaPrompt": "Solte os valores e edite a fórmula aqui",
"calculateIndividualValues": "Calcular valores individuais",
"removeValue": "Remover",
"removeValueTitle": "Remover {0}?",
"removeValueMessage": "Tem certeza que você quer remover este valor calculado?",
"header": "Adicionar valor calculado",
"allValues": "Todos os valores"
},
"grid": {
"total": "Total",
"totals": "Totais",
"grandTotal": "Grand Total",
"blankMember": "(vazio)",
"dateInvalidCaption": "Data inválida",
"reportInformation": "Informações do relatório"
},
"tooltips": {
"row": "Linha:",
"column": "Coluna:",
"headerResize": "Arraste para redimensionar",
"headerFit": "Duplo clique para arranjar",
"filterIcon": "Clique para filtrar",
"filtered": "Filtrado",
"expandIcon": "Clique para expandir",
"collapseIcon": "Clique para retrair",
"drillDown": "Clique para detalhar",
"drillUp": "Clique para diminuir detalhes",
"sortIcon": "Clique para ordenar",
"sortedDescIcon": "Clique para ordenar ascendente",
"sortedAscIcon": "Clique para ordenar descendente",
"close": "Clique para fechar"
},
"aggregations": {
"sum": {
"caption": "Somar",
"totalCaption": "Somatório de {0}",
"grandTotalCaption": "Total do somatório de {0}"
},
"count": {
"caption": "Contagem",
"totalCaption": "Contagem de {0}",
"grandTotalCaption": "Total da contagem de {0}"
},
"distinctCount": {
"caption": "Contagem distinta",
"totalCaption": "Contagem distinta de {0}",
"grandTotalCaption": "Total da contagem distinta de {0}"
},
"difference": {
"caption": "Diferença",
"totalCaption": "Diferença de {0}",
"grandTotalCaption": "Total da diferença de {0}"
},
"percentDifference": {
"caption": "% Diferença",
"totalCaption": "% Diferença de {0}",
"grandTotalCaption": "Total % diferença de {0}"
},
"average": {
"caption": "Média",
"totalCaption": "Média de {0}",
"grandTotalCaption": "Total da média de {0}"
},
"product": {
"caption": "Produto",
"totalCaption": "Produto de {0}",
"grandTotalCaption": "Total do produto de {0}"
},
"min": {
"caption": "Mínimo",
"totalCaption": "Mínimo de {0}",
"grandTotalCaption": "Total do mínimo de {0}"
},
"max": {
"caption": "Máximo",
"totalCaption": "Máximo de {0}",
"grandTotalCaption": "Total máximo de {0}"
},
"percent": {
"caption": "% do total geral",
"totalCaption": "% do total geral de {0}",
"grandTotalCaption": "Total % do total geral de {0}"
},
"percentOfColumn": {
"caption": "% da coluna",
"totalCaption": "% da coluna de {0}",
"grandTotalCaption": "Total % da coluna de {0}"
},
"percentOfRow": {
"caption": "% da linha",
"totalCaption": "% da linha de {0}",
"grandTotalCaption": "Total % da linha de {0}"
},
"index": {
"caption": "Índex",
"totalCaption": "Índex de {0}",
"grandTotalCaption": "Índex de {0}"
},
"none": {
"caption": "Sem cálculo"
}
},
"messages": {
"error": "Erro!",
"warning": "Cuidade!",
"limitation": "Limitação!",
"browse": "Pesquisar",
"confirmation": "Confirmação",
"reportFileType": "Arquivo de relatório",
"loading": "Carregando...",
"loadingConfiguration": "",
"loadingData": "Carregando dados...",
"waiting": "Aguardando pela resposta de {0} segundos.",
"progress": "{0}K",
"progressUnknown": "Carregado {0}K",
"analyzing": "Analizando dados...",
"analyzingProgress": "{0} dados de {1} ({2}%)",
"analyzingRecords": "{0}% dados",
"saving": "Salvando...",
"loadingDimensions": "Carregando dimensões...",
"loadingHierarchies": "Carregando hierarquias...",
"loadingMeasures": "Carregando medidas...",
"loadingKPIs": "Carregando KPIs...",
"loadingMembers": "Carregando membros...",
"loadingLevels": "Carregando níveis...",
"loadingProperties": "Carregando propriedades...",
"fullscreen": "Abrir relatório em tela inteira?",
"exportComplete": "Os dados para exportação foram criados, por favor, clique no botão de \"Salvar\".",
"exportProgress": "Exportação em progresso...",
"exportError": "Erro exportando. Um erro inexperado aconteceu.",
"generatingPDF": "Gerando PDF",
"pleaseWait": "Aguarde.",
"pagesWereGenerated": "páginas foram geradas.",
"uploading": "Enviando...",
"cantSaveFile": "Não foi possível salvar o arquivo.",
"cantSaveToClipboard": "Erro: Não posso enviar para a área de transferência.",
"saveReportToFile": "O relatório está pronto para ser salvado, por favor clique no botão de \"Salvar\".",
"loadReportFromFile": "Selecione o arquivo do relatório para ser carregado.",
"inputNewName": "Coloque o novo nome",
"inputReportName": "Por favor coloque um nome para o relatório",
"invalidDataSource": "Origem de dados inválida. Por favor verifique. <br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#invalid-datasource' target='_blank'>Leia mais informações sobre este erro.</a></u>",
"dataStreamError": "Erro de stream enquanto carregava dados '{0}'<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#stream-error' target='_blank'>Read more info about this error</a></u>",
"unableToOpenFile": "Não foi possível abrir o arquivo {0}.<br/><br/>Parece que o arquivo não existe ou o acesso foi negado.<br/><br/><u><a href='https://www.flexmonster.com/doc/typical-errors/#unable-to-open-file' target='_blank'>Read more info about this error</a></u>",
"unableTwoFileBrowsingSessions": "O diálogo da procura por arquivos já está aberto.",
"inappropriateFileFormat": "O arquivo de dados está em formato inapropriado.",
"invalidJSONdata": "Os dados JSON são inválidos.",
"wrongFormulaFormat": "Formato da fórmula errado. Por favor verifique.",
"excelCsvChartsExportError": "Exportar para Microsoft Excel ou CSV não está disponível para gráficos.",
"excelPdfExportLimitation": "Exportar para Microsoft Excel ou PDF não está disponível para esta versão.",
"excelExportLimitation": "Exportar não está disponível para esta versão.",
"noDataAvailable": "A origem de dados está vazia. Por favor verifique o arquivo CSV.",
"saveDataToFile": "Os dados estão prontos para serem salvos, por favor clique no botão de \"Salvar\".",
"dataWasUpdated": "A origem de dados foi salva no servidor. Deseja atualizar o relatório?",
"ocsvIncompatible": "Não foi possível ler a origem de dados. Parece que o arquivo CSV está em versão diferente.Por favor atualize os componentes da versao {0} ou superior.",
"unknownError": "Erro desconhecido.",
"invalidReportFormat": "Formato de relatório inválido ou acesso ao arquivo negado.",
"csvHeaderParsingError": "Erro analizando o cabeçalho do arquivo CSV.",
"tooManyColumnsInClassicMode": "Muitas colunas para um formulário clássico. Mude o layout para formulário compacto.",
"cantExpand": "Alguns campos não puderam ser expandidos. Por favor diminua o arquivo de dados.",
"cantExpandTitle": "Arquivo de dados muito grande"
},
"buttons": {
"ok": "OK",
"apply": "Aplicar",
"cancel": "Cancelar",
"save": "Salvar",
"clear": "limpar",
"select": "Selecionar",
"yes": "Sim",
"no": "Não"
},
"contextMenu": {
"clearSorting": "Limpar ordenação",
"collapse": "Expandir",
"drillThrough": "Expandir",
"expand": "Expandir",
"openFilter": "Abrir filtro",
"sortColumnAsc": "Ordenar coluna ascendente",
"sortColumnDesc": "Ordenar coluna descendente",
"sortRowAsc": "Ordenar linha ascendente",
"sortRowDesc": "Ordenar linha descendente"
},
"date": {
"year": "Ano",
"quarter": "Trimestre",
"month": "Mês",
"day": "Dia"
},
"quarters": {
"q1": "Trimestre 1",
"q2": "Trimestre 2",
"q3": "Trimestre 3",
"q4": "Trimestre 4"
},
"months": {
"january": "Janeiro",
"february": "Fevereiro",
"march": "Março",
"april": "Abril",
"may": "Maio",
"june": "junho",
"july": "Julho",
"august": "Agosto",
"september": "Setembro",
"october": "Outubro",
"november": "Novembro",
"december": "Dezembro"
},
"monthsShort": {
"january": "Jan",
"february": "Fev",
"march": "Mar",
"april": "Abr",
"may": "Mai",
"june": "Jun",
"july": "Jul",
"august": "Ago",
"september": "Set",
"october": "Out",
"november": "Nov",
"december": "Dez"
},
"weekdays": {
"first": "Domingo",
"second": "Segunda",
"third": "Terça",
"fourth": "Quarta",
"fifth": "Quinta",
"sixth": "Sexta",
"seventh": "Sábado"
},
"weekdaysShort": {
"first": "Dom",
"second": "Seg",
"third": "Ter",
"fourth": "Qua",
"fifth": "Qui",
"sixth": "Sex",
"seventh": "Sab"
},
"toolbar": {
"connect": "Conectar",
"connect_local_csv": "local CSV",
"connect_local_ocsv": "local OCSV",
"connect_local_json": "local JSON",
"connect_remote_csv": "remoto CSV",
"connect_remote_csv_mobile": "CSV",
"connect_remote_json": "remoto JSON",
"connect_remote_json_mobile": "JSON",
"open": "Open",
"local_report": "Relatório local",
"remote_report": "Relatório remoto",
"remote_report_mobile": "Relatório",
"save": "Salvar",
"save_json": null,
"load_json": "relatório JSON",
"grid": "Grid",
"grid_flat": "Flat",
"grid_classic": "Clássico",
"grid_compact": "Compacto",
"format": "Formatar",
"format_cells": "Formatar células",
"format_cells_mobile": "Formatar",
"conditional_formatting": "Formatação condicional",
"conditional_formatting_mobile": "Condicional",
"options": "Opç~poes",
"fullscreen": "Tela inteira",
"minimize": "Minimizar",
"export": "Exportar",
"export_print": "Imprimir",
"export_html": "para HTML",
"export_excel": "para Excel",
"export_pdf": "para PDF",
"fields": "Campos",
"ok": "OK",
"apply": "Aplicar",
"done": "Pronto",
"cancel": "Cancelar",
"value": "Valor",
"delete": "Apagar",
"if": "Se",
"then": "então",
"open_remote_csv": "Abrir CSV remoto",
"open_remote_json": "Abrir JSON remoto",
"csv": "CSV",
"open_remote_report": "Abrir relatório remoto",
"choose_value": "Escolha um valor",
"text_align": "Alinhamento de texto",
"align_left": "esquerda",
"align_right": "direita",
"none": "Nenhum",
"space": "(espaço)",
"thousand_separator": "Separador de milhares",
"decimal_separator": "Separador de decimais",
"decimal_places": "Casas de decimais",
"currency_symbol": "Símbolo de moeda",
"currency_align": "Alinhamendo de valores em moeda",
"null_value": "valor nulo",
"is_percent": "Formate como percentual",
"true_value": "sim",
"false_value": "não",
"conditional": "Condição",
"add_condition": "Adicionar condição",
"less_than": "Menor que",
"less_than_or_equal": "Menor que ou igual a",
"greater_than": "Maior que",
"greater_than_or_equal": "Maior que ou igual a",
"equal_to": "Igual a",
"not_equal_to": "Não igual a",
"between": "entre",
"is_empty": "Vazio",
"all_values": "Todos os valores",
"and": "e",
"and_symbole": "&",
"cp_text": "Texto",
"cp_highlight": "Sublinhado",
"layout_options": "Opções de layout",
"layout": "Layout",
"compact_view": "Formulário compacto",
"classic_view": "Formulário clássico",
"flat_view": "Formulário flat",
"grand_totals": "Totais gerais",
"grand_totals_off": "Não mostrar totais gerais",
"grand_totals_on": "Mostrar totais gerais",
"grand_totals_on_rows": "Mostrar somente linhas",
"grand_totals_on_columns": "Mostrar somente colunas",
"subtotals": "Subtotais",
"subtotals_off": "Não mostrar subtotais",
"subtotals_on": "Mostrar subtotals",
"subtotals_on_rows": "Mostrar subtotais somente de linhas",
"subtotals_on_columns": "Mostrar subtotais somente de colunas",
"choose_page_orientation": "Escolha a orientação de página",
"landscape": "Paisagem",
"portrait": "Retrato"
}
}
}
Also see: Tab Triggers