[elektro] érdekesség
Cser Tamas
maguspr53 at gmail.com
Tue May 13 08:10:36 CEST 2014
gyapo <gyapo at freemail.hu> írta, 2014. 05. 13.:
>> Igen, létezik, de valamiért ezen az oldalon csak a root-ot szedi le.
>> Hogyan lehetne beállítani, vagy mi lehet az oka?
>
> Az oka az, hogy javascript állítja elő a menüt, amik a linkek. Ha a
> letöltősoftware nem értelmezi a javascriptet, akkor nincsenek linkek
> amiket leszedjen.
>
> Üdv.: gyapo
>
> -----------------------------------------
> elektro[-flame|-etc]
a fourier-series.com -ban van egy script.js,
abban van ilyesmi a végén, hogyaszondja:
externalLink.setAttribute("href", "/links/links.html");
meg pl.
links.appendChild(calcLink);
calcLink.setAttribute("href", "/Math/Calc/index.html");
ebből pl. kézzel összeraktam ezt az URL-t,
fourier-series.com/Math/Calc/index.html
és ez a /math/calc/ létezik
function initAll(){
var links = document.getElementById("links"); //navigation div on all pages
//CONTACT LINK
var contactLink = document.createElement("a");
var contactText = document.createTextNode("Send Comments");
var contactDiv = document.createElement("div");
links.appendChild(contactLink);
contactLink.setAttribute("href", "mailto:brent at fourier-series.com");
contactLink.setAttribute("class", "wide");
contactLink.appendChild(contactDiv);
contactDiv.setAttribute("class", "button");
contactDiv.setAttribute("id", "info");
contactDiv.appendChild(contactText);
//HOME LINK
var homeLink = document.createElement("a");
var homeText = document.createTextNode("HOME");
var homeDiv = document.createElement("div");
links.appendChild(homeLink);
homeLink.setAttribute("href", "/index.html");
homeLink.setAttribute("class", "wide");
homeLink.appendChild(homeDiv);
homeDiv.setAttribute("class", "button");
homeDiv.setAttribute("id", "home");
homeDiv.appendChild(homeText);
//FOURIER SERIES
var fourierSeriesTutorialLink = document.createElement("a");
var fourierSeriesTutorialText = document.createTextNode("FOURIER SERIES");
var fourierSeriesTutorialDiv = document.createElement("div");
links.appendChild(fourierSeriesTutorialLink);
fourierSeriesTutorialLink.setAttribute("href",
"/fourierseries2/fourier_series_tutorial.html");
fourierSeriesTutorialLink.setAttribute("class", "wide");
fourierSeriesTutorialLink.appendChild(fourierSeriesTutorialDiv);
fourierSeriesTutorialDiv.setAttribute("class", "button");
fourierSeriesTutorialDiv.setAttribute("id", "topic");
fourierSeriesTutorialDiv.appendChild(fourierSeriesTutorialText);
//IN SIN COS
var inSinCosLink = document.createElement("a");
var inSinCosText = document.createTextNode("in Sin/Cos format");
var inSinCosDiv = document.createElement("div");
links.appendChild(inSinCosLink);
inSinCosLink.setAttribute("href",
"/fourierseries2/fourier_series_tutorial.html");
inSinCosLink.setAttribute("class", "thin");
inSinCosLink.appendChild(inSinCosDiv);
inSinCosDiv.setAttribute("class", "subsection");
inSinCosDiv.appendChild(inSinCosText);
//E^JWT
var eJWTLink = document.createElement("a");
var eJWTText = document.createTextNode("in e^-jwt format");
var eJWTDiv = document.createElement("div");
links.appendChild(eJWTLink);
eJWTLink.setAttribute("href", "/fourierseries2/fourier_series_complex.html");
eJWTLink.setAttribute("class", "thin");
eJWTLink.appendChild(eJWTDiv);
eJWTDiv.setAttribute("class", "subsection");
eJWTDiv.appendChild(eJWTText);
//COMPLEX NUMBERS
var complexNumbersLink = document.createElement("a");
var complexNumbersText = document.createTextNode("Complex Numbers");
var complexNumbersDiv = document.createElement("div");
links.appendChild(complexNumbersLink);
complexNumbersLink.setAttribute("href",
"/fourierseries2/complex_tutorial.html");
complexNumbersLink.setAttribute("class", "wide");
complexNumbersLink.appendChild(complexNumbersDiv);
complexNumbersDiv.setAttribute("class", "button");
complexNumbersDiv.setAttribute("id", "topic");
complexNumbersDiv.appendChild(complexNumbersText);
//TRANSFORM
var transformLink = document.createElement("a");
var transformText = document.createTextNode("Fourier Transform");
var transformDiv = document.createElement("div");
links.appendChild(transformLink);
transformLink.setAttribute("href", "/f-transform/index.html");
transformLink.setAttribute("class", "wide");
transformLink.appendChild(transformDiv);
transformDiv.setAttribute("class", "button");
transformDiv.setAttribute("id", "topic");
transformDiv.appendChild(transformText);
//CONVOLUTION
var convolutionLink = document.createElement("a");
var convolutionText = document.createTextNode("Convolution Integral");
var convolutionDiv = document.createElement("div");
links.appendChild(convolutionLink);
convolutionLink.setAttribute("href", "/convolution/index.html");
convolutionLink.setAttribute("class", "wide");
convolutionLink.appendChild(convolutionDiv);
convolutionDiv.setAttribute("class", "button");
convolutionDiv.setAttribute("id", "topic");
convolutionDiv.appendChild(convolutionText);
//RF CONCEPTS
var rFConceptsLink = document.createElement("a");
var rFConceptsText = document.createTextNode("RF CONCEPTS");
var rFConceptsDiv = document.createElement("div");
links.appendChild(rFConceptsLink);
rFConceptsLink.setAttribute("href", "/rf-concepts/index.html");
rFConceptsLink.setAttribute("class", "wide");
rFConceptsLink.appendChild(rFConceptsDiv);
rFConceptsDiv.setAttribute("class", "button");
rFConceptsDiv.setAttribute("id", "topic");
rFConceptsDiv.appendChild(rFConceptsText);
//REFLECTION & VSWR
var reflectionLink = document.createElement("a");
var reflectionText = document.createTextNode("Reflection & VSWR");
var reflectionDiv = document.createElement("div");
links.appendChild(reflectionLink);
reflectionLink.setAttribute("href", "/rf-concepts/reflection.html");
reflectionLink.setAttribute("class", "thin");
reflectionLink.appendChild(reflectionDiv);
reflectionDiv.setAttribute("class", "subsection");
reflectionDiv.appendChild(reflectionText);
//SMITH CHART
var smithChartLink = document.createElement("a");
var smithChartText = document.createTextNode("Smith Chart");
var smithChartDiv = document.createElement("div");
links.appendChild(smithChartLink);
smithChartLink.setAttribute("href", "/rf-concepts/smithchart.html");
smithChartLink.setAttribute("class", "thin");
smithChartLink.appendChild(smithChartDiv);
smithChartDiv.setAttribute("class", "subsection");
smithChartDiv.appendChild(smithChartText);
//DECIBELS
var decibelsLink = document.createElement("a");
var decibelsText = document.createTextNode("Decibels");
var decibelsDiv = document.createElement("div");
links.appendChild(decibelsLink);
decibelsLink.setAttribute("href", "/rf-concepts/decibels.html");
decibelsLink.setAttribute("class", "thin");
decibelsLink.appendChild(decibelsDiv);
decibelsDiv.setAttribute("class", "subsection");
decibelsDiv.appendChild(decibelsText);
//THERMAL NOISE
var thermalNoiseLink = document.createElement("a");
var thermalNoiseText = document.createTextNode("Thermal Noise");
var thermalNoiseDiv = document.createElement("div");
links.appendChild(thermalNoiseLink);
thermalNoiseLink.setAttribute("href", "/Noise/index.html");
thermalNoiseLink.setAttribute("class", "thin");
thermalNoiseLink.appendChild(thermalNoiseDiv);
thermalNoiseDiv.setAttribute("class", "subsection");
thermalNoiseDiv.appendChild(thermalNoiseText);
//NOISE FIGURE
var noiseFigureLink = document.createElement("a");
var noiseFigureText = document.createTextNode("Noise Figure");
var noiseFigureDiv = document.createElement("div");
links.appendChild(noiseFigureLink);
noiseFigureLink.setAttribute("href", "/Noise/Noisefigure.html");
noiseFigureLink.setAttribute("class", "thin");
noiseFigureLink.appendChild(noiseFigureDiv);
noiseFigureDiv.setAttribute("class", "subsection");
noiseFigureDiv.appendChild(noiseFigureText);
//RLC CIRCUIT
var rLCCircuitLink = document.createElement("a");
var rLCCircuitText = document.createTextNode("Series RLC Circuit");
var rLCCircuitDiv = document.createElement("div");
links.appendChild(rLCCircuitLink);
rLCCircuitLink.setAttribute("href", "/RLC-Circuit/index.html");
rLCCircuitLink.setAttribute("class", "wide");
rLCCircuitLink.appendChild(rLCCircuitDiv);
rLCCircuitDiv.setAttribute("class", "button");
rLCCircuitDiv.setAttribute("id", "topic");
rLCCircuitDiv.appendChild(rLCCircuitText);
//DSP
var dSPLink = document.createElement("a");
var dSPText = document.createTextNode("DSP");
var dSPDiv = document.createElement("div");
links.appendChild(dSPLink);
dSPLink.setAttribute("href", "/fourierseries2/DSP.html");
dSPLink.setAttribute("class", "wide");
dSPLink.appendChild(dSPDiv);
dSPDiv.setAttribute("class", "button");
dSPDiv.setAttribute("id", "topic");
dSPDiv.appendChild(dSPText);
//DISCRETE FOURIER TRANSFORM
var dFTLink = document.createElement("a");
var dFTText = document.createTextNode("Discrete Fourier Trans");
var dFTDiv = document.createElement("div");
links.appendChild(dFTLink);
dFTLink.setAttribute("href", "/fourierseries2/DFT_tutorial.html");
dFTLink.setAttribute("class", "thin");
dFTLink.appendChild(dFTDiv);
dFTDiv.setAttribute("class", "subsection");
dFTDiv.appendChild(dFTText);
//DIGITAL CONVOLUTION
var digitalConvolutionLink = document.createElement("a");
var digitalConvolutionText = document.createTextNode("Digital Convolution");
var digitalConvolutionDiv = document.createElement("div");
links.appendChild(digitalConvolutionLink);
digitalConvolutionLink.setAttribute("href",
"/fourierseries2/convolution.html");
digitalConvolutionLink.setAttribute("class", "thin");
digitalConvolutionLink.appendChild(digitalConvolutionDiv);
digitalConvolutionDiv.setAttribute("class", "subsection");
digitalConvolutionDiv.appendChild(digitalConvolutionText);
//FIR FILTERS
var fIRFilterLink = document.createElement("a");
var fIRFilterText = document.createTextNode("FIR Filters");
var fIRFilterDiv = document.createElement("div");
links.appendChild(fIRFilterLink);
fIRFilterLink.setAttribute("href", "/fourierseries2/FIR-filter.html");
fIRFilterLink.setAttribute("class", "thin");
fIRFilterLink.appendChild(fIRFilterDiv);
fIRFilterDiv.setAttribute("class", "subsection");
fIRFilterDiv.appendChild(fIRFilterText);
//QUADRATURE MODULATION
var qModLink = document.createElement("a");
var qModText = document.createTextNode("Quadrature Modulation");
var qModDiv = document.createElement("div");
links.appendChild(qModLink);
qModLink.setAttribute("href", "/IQMod/index.html");
qModLink.setAttribute("class", "wide");
qModLink.appendChild(qModDiv);
qModDiv.setAttribute("class", "button");
qModDiv.setAttribute("id", "quadmod");
qModDiv.appendChild(qModText);
//TRIG
var trigLink = document.createElement("a");
var trigText = document.createTextNode("Basics of Trigonometry");
var trigDiv = document.createElement("div");
links.appendChild(trigLink);
trigLink.setAttribute("href", "/Math/Trig/index.html");
trigLink.setAttribute("class", "wide");
trigLink.appendChild(trigDiv);
trigDiv.setAttribute("class", "button");
trigDiv.setAttribute("id", "trig");
trigDiv.appendChild(trigText);
//CALC
var calcLink = document.createElement("a");
var calcText = document.createTextNode("Basics of Calculus");
var calcDiv = document.createElement("div");
links.appendChild(calcLink);
calcLink.setAttribute("href", "/Math/Calc/index.html");
calcLink.setAttribute("class", "wide");
calcLink.appendChild(calcDiv);
calcDiv.setAttribute("class", "button");
calcDiv.setAttribute("id", "calc");
calcDiv.appendChild(calcText);
//ABOUT
var aboutLink = document.createElement("a");
var aboutText = document.createTextNode("About");
var aboutDiv = document.createElement("div");
links.appendChild(aboutLink);
aboutLink.setAttribute("href", "/fourierseries2/about.html");
aboutLink.setAttribute("class", "wide");
aboutLink.appendChild(aboutDiv);
aboutDiv.setAttribute("class", "button");
aboutDiv.setAttribute("id", "info");
aboutDiv.appendChild(aboutText);
//EXTERNAL LINKS
var externalLink = document.createElement("a");
var externalText = document.createTextNode("External links");
var externalDiv = document.createElement("div");
links.appendChild(externalLink);
externalLink.setAttribute("href", "/links/links.html");
externalLink.setAttribute("class", "wide");
externalLink.appendChild(externalDiv);
externalDiv.setAttribute("class", "button");
externalDiv.setAttribute("id", "info");
externalDiv.appendChild(externalText);
}
window.onload = initAll;
More information about the Elektro
mailing list