bplist00_WebMainResource_WebSubresources ^WebResourceURL_WebResourceData_WebResourceMIMEType_WebResourceTextEncodingName_WebResourceFrameName_Ohttps://web.archive.org/web/20020205115607/http://www.kardamyla.com/history.htmO1 History
Previous capture 5 Next capture
2001 2002 2003
24 captures
18 Sep 00 - 26 Apr 06
Close Help

kardamylamain.gif (6687 bytes)flag00_ss.gif (10042 bytes)








Home History Information Guestbook Feedback









  Ancient Times - Bysantine Era - Middle Ages - Genoese Rule - Turkish Rule - The Massacre of Chios, 1822 - The Struggle of Independence, 1912 - After 1912


As far as the degree of habitation and cultural existence during the prehistoric times in Kardamyla (before 1100 BC), very little evidence exists.

References to pelasgic structures, to the existence of a pelasgic wall at the mountain of Skitonas, of pelasgic wells at Parpanta, of Mycenian ceramics at Nagos as well as place names such as Hellinotichos (Greek wall), which is interpreted as being a prehistoric ruin which is attributed to the Greeks, presupposes the development of civilization from prehistoric times.

Reliable testimony on the past of Kardamyla and its history comes from ancient sources (mainly the historians Herodotus and Thucydides). Also the names of places, the sparse but existing remnants of walls and temples that exist, along with the discovery of ancient inscriptions, show and underscore the significance the village had for the island. From Herodotus, one learns of the significant role the southwestern part of Kardamyla and mainly the area of Koila played during antiquity and during the Persian War:
"in Koili the so-called village of Chios" (Herodotus VI.26)

Also Polichne (small town), which Herodotus mentions as the place that the tyrant Myletos Estaios disembarked after 494 BC ( "Estaios with the help of those from Lesbos rushed toward Polichnes of Chios prevailing") is located in the area found between Delphini and Koila.

The significance of the area of Kardamyla especially during the years of the Peloponnesian War (431-404 BC) is proven by the references of Thucydides, with respect to the landing of the Athenians in ancient Kardamyli when the Chians, under an oligarchic government were demobilized and requested the aid of the Spartans (in 411 BC).

This indicates that the inhabitants of Kardamyla as well as those of Volissos paid for the vindictive disposition of the Athenians, who killed many and destroyed the surrounding areas. During the same period, Delphini was also being used as an important military base and starting point of operations of the Athenians against the Chians.

A significant source on the history of the Kardamylians during the 4th century BC is the inscription that was found in November of 1878 at the chapel of Aghios Panteleimonas (Saint All Merciful) which mentions facts about the aristocratic family of the Klytides and defines the location of their property.

The Klytides are a very old aristocratic and priestly family of Chios as were the Homerides and the Oinopides, privileged in the ancestral land where their sacred property was founded.

In the same inscription, locations are mentioned of where the Klytides had their property, such as Delphini, Parvanta (Parpanta), the altar of Akton with its grove (an area near Parpanta) and Lagoei (today's Lagia). It also mentions the way the family of the Klytides indefinitely rented various houses and property whose first year would be paid expressly upon agreement and the difference would be paid in one year.

The payments were paid in cash (in ancient greek enilasion) and in goods and the individual who cultivated the land was obligated to pay the taxes as well as one one-hundredth of the wage. One couldn't break the contract which was notarized under oath unless one completed the condition "by crop and by building," of the leased property.

The "epignomones knowledgeable ones",who were appointed by the Klytides family and the neighboring settlement decided what the conditions of the contract were.

From the inscriptions, it is obvious that "the ancestral land" began from the foot of the mountain Pelinneo, that is from the area of Nagos and Yiosonas and it reached Parpanta, where many sacred places were founded [Taighero, the so-called Theokepa (God's Gardens)- Nagos, the altar in Aktes]. In other words, it refers to the borders of Kardamyla.

The god who was worshipped here was Patroos or Pelinneo Zeus who was mentioned in another dedication inscription: " ZEUS PATROIO".

At the altar of Patroos Zeus there was a sacred forest. The temple or "naos" was the major structure where the statue of the Patroos Zeus was found, the temenos, the altar of the god and the house, which was another structure, protected the sacred objects of the god which were used on holidays.

No one, neither private citizen nor other party, was permitted to use the sacred objects except for the Klytides. This because the meaning behind private ownership had a religious value. Supposedly, the earth belonged to the ancestors of the place and in many cases, it was deified.

Besides the common respect that everyone was required to give, there were also some, the frontier guards, who were like guarantors of protection of the altars of these places. In many Chian inscriptions, one often finds prohibitions, curses, and penalties but also fines against those who didn't follow the commands.

Other deities that were worshipped in the area of Kardamyla besides Patroos Zeus were Actaios Dionysus along with Xenios Apollo in the very ancient temple of Actaia near Parpanta where Kytheria Aphrodite was also worshipped.

Delphinios Apollo at Delphini along with probably Delphinia Artemis, "Apollo in Koilois" at Koila, Caucaseus Apollo and Caucaseus Artemis at Caucasia (probably the area of Loutra) as well as the god of the sea Poseidon at Vlichada were also worshipped.

At the significant altar at Nagos, the worship of Apollo, Poseidon, Asklepios as well as Hygeia has been ascribed without any certainty.

During the Hellenistic Age, important fortification projects had been created at the mountain Gria, something which is certified by its strategic location. Scattered relics from the Hellenistic Age as well as the Roman Period at Vroulidia indicate the localization of the military value of the area during these periods.

The only inscriptions of the Roman Period refer to the development of the altar of Acton at Parpanta. At the time, the temple was constructed, grander than that of the dionysian Iolla[eo'la] of Iollaos the younger. This is known from a small unaddressed 1st century BC marble altar with a dedication inscription.


The Chrysovoulo (byzantine emperor's document with golden seal) of Michael Palaiolologos of 1259 informs us of the fate of Kardamyla during the post Byzantine period. The notable medieval "monument" mentions the various types of estates that the wealthy Nea Moni had, scattered in all of Chios. Amidst that was also "the Kardamylian property belonging to the monastery" which was located in the area of Neravlakas, as well as other shares at Delphini and at Parpanta.

The "Kardamylion" in the mid 19th century consisted of "more than 1,000 fields of about 1,700 fathoms of the area ..." and that Nea Moni controlled and cultivated it many years after the 13th century.

During the middle ages, the area of Kardamyla received the catastrophic rage of pirates (Franks, Turks, and Algerians) resulting in the abandonment of many homes and the concentration of many residents in the central structure of (Ano) Kardamyla. Folk tradition preserves the names of the brave defenders of the area, such as Constantinos Aggelikousis for Koila, Delphini, and the Moro of Spilia, Diakos-Polemarkos, a descendant of Chartoulari, for the settlement of Kardamyla and Margounas (Maximou Margouniou) for the northern shore of the area of Kardamyla, and the fort of Skitonas.


During the rule of the Genoese in Chios (1346-1556), almost the entire northeastern part of the area of Kardamyla is presented as fortified with strong strategic positions - watchtowers, isolated defense castles as well as other fortifications as is seen in the names of places such as Megali Vigla (Big Sentry), Moundoukoulas, Koulalas, Pyrghia (castles), Vigli (also known as Tsounas), Pyrgharo and others. It was then that the settlement of Ano Kardamyla, which had taken on the shape of a castle, was reinforced.

Twenty four villages made up the main core of Kardamyla. The external dangers forced the settlers of these villages to acknowledge the governing center of Ano Kardamyla and to report to the administrator being represented by their elected individuals, the "gerontes" (wise ones). Each geronta collected the village taxes and delivered them to the governor of Kardamyla, who kept his seat at the Pyrgho.

Later the villages became sixteen as piracy took its toll and literally destroyed them and forced the settlers to constantly concentrate at the Kastro creating sixteen corresponding departments or separate communities from the villages or their family lines.


From this settlement, eight family lines were finally left with the names Frangias, Halkias, Makrinos, Vayianos, Melis, Aspiotis, Moschos and Lignos. By the 17th century, Kardamyla had eight priests and approximately five hundred residents who survived cultivating the earth, cattle-breeding and vine-growing although from the end of the 18th century, the development of buildings is observed with the creation of new houses.

Local Government: The institution of the Gerontes or Town Gerontes.
The institution of Town gerontio, was maintained throughout Turkish rule according to the Gerontes or institution of the local authorities and other areas of Greece.
With the destruction of Chios in 1822, Kardamyla was divided into four family lines: the Glyftika', the Kyminadika', the Poniroudika' and the Nikoloudika' from which the four gerontes of the village were elected. Even though they had lost their prior power, they influenced and imposed their names at the division of the inhabitants.
The president of the gerontes was named the Protogerontas (the first wise one) or Gerontomana (mother of the wise ones).

The authority of the gerontes lasted one year and those who paid estate taxes of at least fifty gross had the right to vote although the elected noblemen had to pay over one hundred gross. Those who worked for the merchant marine or in other occupations had no other political rights unless they owned land.

There were organized factions with their own leaders, and lieutenants of such titles: the aristocratic one was named fountoukiko (the "filbert" one) and the popular one was named the koureliariko (the "ragged" one). The election of the two factions was concentrated at the courtyard of Panaghia Mesochoritissa (the Virgin of the Middle Village, also known as Choriopanaghia) where a meeting would take place. There they would vote from the nominated geronetes. These were written in a catalogue and the voters would sign in two columns.

The majority faction would win and if it was a tie vote, each faction put up two town gerontes.
Characteristic was the talk that transpired during the pre-election proceedings where the nominees used biting sarcasm as well as shrewd jokes. Each family would present itself with its leader who was characterized by a loud voice, prudence, and courage.

Their appointment was approved by the Turkish governor. They would meet at Onta, the meeting place of the gerontes with the Turks. There was a prison under that for thieves and violators of the law. Later they would collect their individual property tax. The tax on the houses, the wine and the sheep was gathered by the Turks.

The responsibilities of the Gerontes were many. They had the governing, judicial, educational, rural, and agrarian authority of Kardamyla. For all of their civic occupation, each one would receive a yearly offer of about one thousand piaster.

In the beginning, the four town gerontes had a seal with the inscription "Town of Kardamyla". Later that seal was divided into four pieces from which each town gerontas held one piece, at this point with Turkish letters.

In extraordinary circumstances, they would invite the people to unscheduled assembly meetings with the bell-ringing of the Church of Panaghias.
The institution of the town gerontes was maintained until 1912, the year Chios was liberated from the Turks.

Above all the authorities were the Progesti or Proestotes (the chiefs), Prouchontes or Prokriti (the notables) with total power. With their vocational and outstanding presence, they were treated with special honor even from the Gerontes.

Kardamyla during the Massacre of Chios
he frightful April of 1822, when the savage hordes of tyrants let loose through the towns and villages of Chios spreading death to the innocent population of the island, the Kardamylians took to the mountains, where they were not only being chased by the terror of the Turks but by famine as well.

Others went toward the area of Pezoula, others to Megali Vigla, to Fourno (oven) where there was a big cave, many to the cave of Gria or to "Tou Morou ti Spilia" (Moros' Cave), as well as to other surrounding caves, where they ate mountain roots and weeds.

The Turkish army coming from Chios, passed through the area of Aghia Marina and while they were across from the Horio (village), they easily confronted the weak resistance from Kastro. The army returned to Aghia Marina and divided into three parts heading in the destinations of Rina, Fonopetra and Kastro.

Inside the settlement of Kardamyla, the Turks found almost no one since most of the inhabitants were hidden in the surrounding areas. Then the Turks in order to force them to appear, tried to persuade them using their consuls as instruments, promising them amnesty.

Many Kardamylians, adults and children exhausted from starvation, were forced to come down to the village where they were confronted by the perfidious Turks and the horrendous moments of their slaughter at the area of Fonopetra (rock of murder).

Many Kardamylian women were butchered by the Turks at the place Platanaki (little plane-tree) near Serapio, as they were lead to Chios for captivity.

After this, the protection of the Kardamylians was undertaken by Kontanagnostis, well-known as a Kardamylian who was among those who while armed, confronted the Turks. His name was Michael or Angelos Anagnostis, and he was named Kontanagnostis (short reader in Greek) because of his short stature. This brave man was active in both the revolutions of Chios (1822 and 1827-1828) and his name is followed with many accomplishments.

The Kapetanato (that is, a military company or group) of Kontanagnostis was composed of the following Kardamylian heroes, just as brave as he: Kara-Panagiotis, brother of Kontanagnostis, Captain Nicholas Tsatiris, flag-bearer of Kontanagnostis, Gennadios Kontokostas, George Mavris, Mark Pyrovolos, Michael Balomoutsounos, George Pittas, Nicholas Frangos, and John Kolonas. Other distinguished members were Father Pantelis Pettikas along with Konstantis Deligiannis who was gerontas of the town.

During the period of the massacre of Chios, many Kardamylians left as refugees to Psara, to the Cycladic Islands and to the Peloponnese. Their expatriation was temporary and their return to Kardamyla put an end to their past and began their recent history.
After their repatriation, the population increased significantly. It is marked by families having many children, especially boys. They contributed to the intense cultivation of the land and to cattle-breeding, while the contribution of many Kardamylians to the enterprises of the Greek navy during the Revolution got them acquainted with shoreline of Chios and the peninsula of Asia Minor located across the same sea.

The Kardamylians slowly began to descend and to build their houses here and there. In this way, Marmaro (marble) was settled. In the middle of the 19th century, along with their agrarian occupations, the Kardamylians moved toward navigation and occupied themselves with it.


The Volunteer Corps of Kardamyla: M. Vasilakis, Michael Xylas, Michael Zolotas, I. Frangos, Adam Mylonas, I. Melis, George Livanos, I. Staridas, M. Kountouroudas, Panagiotis D. Antonopoulos, Father K. Tsigkros, I. Mattheos, Michael Lignos, Michael Papalios, K. Gemelos, Stylianos Halkias, G. D. Antonopoulos, G. Frangos.


During the struggle for independence of 1912, the Kardamylians lead once again with their heroic contribution.
The Volunteer Corps of Kardamylians which was created by approximately 200 men faced the Turkish attacks with bravery and courage as they rushed from the village of Pityous.
A few days before the troops came to the area, they had overthrown the Turkish authorities, raised the Greek flag and undertook the guarding of the Chorio. They had separated into many divisions and they had seized the various sites of the area.

The women of Kardamyla, actively contributed to the struggle also. At the little Church of Aghia Marina at Perdiki, they housed the staff of the companies, the transmission center as well as the army hospital. It also became the concentration camp for Turkish prisoners. The monastery of Pera Panaghia (the Virgin Across the Way) was a concentration camp. It also propelled volunteers to the front-line.

The center of the battles occurred at the peek of Gria which was fortified (once again in history) with a volunteer corps of Kardamylians which consisted of 120 men. Organizers of the struggle were the educator P. Antonopoulos, the doctor Elias Aspiotis, and the lawyer Michael Zolotas. The leader of the volunteer liberation corps was Michael G. Spethogiannis.

The "Battle at Gria" on the 16th of November of 1912 was decisive in the struggle. In spite of the constant attacks, the Turks never succeeded in seizing the central elevation. The Volunteer Corps of Kardamyla with its boldness and decisiveness faced the much larger Turkish power, forcing it to not attempt any surprise attacks but to retreat with many casualties and injured.

On the 20th of December, the ships "ESPERIA","MACEDONIA", "MIKALI", "AMBRAKIA" of the Greek squadron seized defined positions around Chios. While firing, they aided the attack of the infantry throughout the island.
As for Kardamyla, the final rush of the battle was made on the same day with the battle of "Karfotou-Amythountas".
The division of the adjutant Starida consisted of 200 volunteers from Kardamyla (130 volunteers and 70 auxiliaries) and it was managed by the corporals Markos, Kalas and Vergopoulos and by the more skillful volunteers Michael Spethogiannis, Mark Vassilakis, George Xylas and George Petikas.

The strength was reinforced by divisions of soldiers and volunteers, 22 under the brave G. Bourna, 16 under Corporal Pausania Katsotas and 12 Cretans under Manolakakis.
The fighters separated into four divisions that were steadily supported by the cannon shots of the transport ship "MIKALI", which was found outside of the bay of Marmaro. They advanced to the impassable and steep slopes of Karfotos, engaging in a fight face-to-face with the enemy. The enemies abandoned their positions and proceeded toward Pityous while the Kardamylians were erecting guardships.

At the battle, the brave Kardamylian Anthonios Rapitis as well as other volunteers were killed.
On the 21st of December of 1912, the volunteer corps of Kardamyla seized Pityous taking captive 11 officers and 295 Turkish armed soldiers forcing the enemy to surrender on the same day to the commander of the Greek landing forces Delagrammatikas.

  AFTER 1922

After the catastrophe of Asia Minor in 1922, all of Chios accepted on her lands the great number of Greek refugees from the shores of Ionia. A large part of these refugees would create the generation of Chiotomikrasiaton (Chians from Asia Minor).

A part of them would establish themselves in Kardamyla isolated here and there or concentrated in the typical refugee houses of the Synoikismos (Colonization).

These refugees from Asia Minor were all gentle homemakers and family types who made their roots here and transferred the arts of Ionia here. Such arts included the sculpting of stone in modern architecture, the art of carpentry, weaving and embroidery, song and dance, expression through festivals, the art of baking and other skills. In this way, they grafted their own spirit with the culture of the place and they connected to the joys and pains of their new country.

According to demographic facts, the map charting the refugees of 1928 shows that 13% were concentrated in Kardamyla and neighboring Lagada causing the population of Kardamyla to increase by 22%.

During the period of 1928 to 1940 though, there seems to be a demographic stagnation for Kardamyla. Along with Vrontados, it would undergo significant losses decreasing the population by 14%. Postponed weddings, extended absences of men at sea and the voluntary limitation of births were the causes. The community archives, which abound with many-member families existing prior to 1920, seem to show the population diminished substantially.

Subsequently, World War II and the German occupation constituted for all of Chios an awesome suffering. The destruction of the merchant marine cuts the island from its livelihood while thousand of deaths of citizens from starvation are counted.

Many Kardamylians fought in Albania and in the epic War of 1940 where they honored their country, those who battled and those who defended it.

At sea, the contribution of the Kardamylian sailors and officers was capital and substantial to the Greek Navy. In 1941 and 1943, the Kardamylian vessels "Despina", "Ghero Panagiotis", and "Aghios Konstantinos" were lost by bombs and torpedoes taking with them Kardamylian sailors to their watery graves. Kardamylian officers suffered physically and emotionally serving their country and the allied powers in the navy throughout the Eastern Mediterranean.


On May 4 1941, the Germans arrived in Kardamyla with a force of 120 men. They commandeered ten Kardamylian houses, settled there and used the house of I. Xylas as a fort. The goal of their arrival was the guarding of the area and the establishment of prisons at the places of Aghios Andreas, the windmill of Mavris, the hill of Margharitis and Vroulidia for the observation and control of communications. On September 20, 1941, the German commander Vinkler visited Kardamyla. On June 20 1944, the Germans retreated from Kardamyla and abridged with the fort of Lagada. The Germans imposed the requirement of the teaching of the German language to civil servants and to scientists and made it optional for all others.
They mercilessly deforested the area to use the wood for their fortification projects. During these difficult years, approximately 800 Kardamylians were forced to escape to the Middle East from Vroulidia, Delphini, Pantoukios, Tholo, and Mersinidi.

Kardamylians would often put their lives in danger to be hospitable and accommodating to many of their officers and soldiers on their way to Asia Minor. The Resistance Organization of Kardamyla sent Captain G. Skarvelis, the mechanical engineer A. Mavris and Vangelis Notias as a crew on the pirate ship of the hero Iasonas Kalambokas. The Triaina of Captain M. Xylas was added to the resistance struggle. These ships would facilitate the escape of fellow countrymen to Asia Minor while at the same time, they strengthened families of Kardamyla, Volissos and Psara with provisions.

The lawyer Ioannis Kaloudis was arrested by the Germans as an agent of the British and one can only attribute his rescue by the camp of Thessalonicaian "Pavlo Melas'' to a miracle. They executed Perivolaris and Moustakas for the illegal carrying of hunting weapons and Pateras for dynamite at sea. They dislodged Papazis. They arrested a sufficient number of Kardamylians and held them for several days.

The deprivation of elementary food for the survival of the inhabitants resulted in malnutrition and weakness of many although 150 individuals died of starvation just in the area of Marmaro alone.
At the same time a committee functioned for the provisioning of food which as its main purpose had the distribution of these provisions and the preparation of meals.

The Kardamylians Lambros Fatsis, the actor Adamantios Lemos, the educator Emmanuel Thravalos, and the ship-owning couple Constantinos and Anna Karras developed and offered their philanthropic activities and aid throughout these difficult years.

The liberation found Kardamyla with a population of 3000 inhabitants approximately and the "V" for victory on the mountain of Marghariti which is maintained to date reminds one of the victory which the Germans wished to impose during this period of martyrdom of 1940 to 1944.

After the powerful blows of World War II, the United States granting of 100 Liberty ships to Greece in 1947, lead to the reappearance of the Greek flag at sea. Four hundred seventy three ships appear to belong to Chian ship-owners, among them being the names of the most powerful: Stavros Livanos (53 ships), K. M. Lemos (43 ships), Chandris (32 ships), K. I. Karras (29 ships), Fafalios (17 ships) and others.

The earthquake of 1949 and the hardships the inhabitants of Kardamyla endured were succeeded by the decades of the 50s and 60s productive periods of rebuilding of municipal and community activities.

With the economic crisis of the decade of the 70s and with the issue of Cyprus as the preeminent national issue, a large migration to large cities especially Athens was observed, something which once again influenced the demographic map of Kardamyla.



          Copyright 1987-2001 G L Liadis Computing, Ltd. all rights reserved

                 e-mail: kardamyla@glliadis.com


Ytext/htmlUUTF-8P"'+059=AFKOSW[_cglptx|_WebResourceResponse_]safari-extension://com.wondershare.safari.itubestudio-YZC2T44ZDX/2fde7611/analyster/common.jsOObplist0045X$versionX$objectsY$archiverT$top%&,-./0U$null R$3V$classR$6R$1R$9R$4R$7R$2R$5R$0R$8   !#$WNS.base[NS.relative_]safari-extension://com.wondershare.safari.itubestudio-YZC2T44ZDX/2fde7611/analyster/common.js'()*Z$classnameX$classesUNSURL)+XNSObject#A_ 6m_text/javascript#'(12]NSURLResponse3+]NSURLResponse_NSKeyedArchiver67_WebResourceResponse#-27CI`cjmpsvy|!,5;>GPbens8O// funnyordie.com var ISCommonAnalyster = {}; (function() { var videoURL; var downloadBtnDiv; function htmlFive(element) { var videoURL = document.location.href; var url = videoURL; if(url.indexOf("vimeo.com") != -1 && isHTML5 == true) { vplayerDiv = element.parentNode.parentNode.parentNode; var encodeData = "pageUrl=" + videoURL + "-WS-GUES-cookies=" + document.cookie; vbtnDownload = ISCore.attachButtonDiv(vplayerDiv, ISExtensionConfig.getDownloadButtonPosition(), "", ISExtensionConfig.getInvokeProtocol() + ISCore.base64Encode(encodeData)); ISCore.bind_mouseover(vplayerDiv, vbtnDownload); } } // 针 对 lynda 网 站 function islynda(event) { var videoURL = document.location.href; if (videoURL.indexOf("lynda.com") == -1) return false; if (ISCore.getBrowserIndent() != "firefox") return (event.target instanceof HTMLDivElement) && (event.target.getAttribute("class").indexOf("ToggleOverlay") != -1); else return (event.originalTarget.toString().indexOf("HTMLDivElement") != -1) && (event.target.getAttribute("class").indexOf("ToggleOverlay") != -1); } function handleMouseoverEvent(event) { var validTarget = false ; if (ISCore.getBrowserIndent() != "firefox") { //Chrome & Safari validTarget = event.target instanceof HTMLEmbedElement || event.target instanceof HTMLObjectElement || event.target instanceof HTMLIFrameElement || event.target instanceof HTMLVideoElement || islynda(event); } else { // try { // validTarget = event.originalTarget instanceof HTMLEmbedElement || event.originalTarget instanceof HTMLObjectElement || event.originalTarget instanceof HTMLIFrameElement || event.originalTarget instanceof HTMLVideoElement ; // } // catch(ex) { validTarget = (event.originalTarget.toString().indexOf("HTMLEmbedElement") != -1) || (event.originalTarget.toString().indexOf("HTMLObjectElement") != -1) || (event.originalTarget.toString().indexOf("HTMLIFrameElement") != -1) || (event.originalTarget.toString().indexOf("HTMLVideoElement") != -1) || islynda(event); //} } if (validTarget) { // 233/1397 的 比 例 是 为 了 过 滤 掉 veoh 网 站 的 一 个 高 宽 比 为233/1397 的 flash var flash = ISCore.targetObject(event); videoURL = document.location.href; var condition = false; if (videoURL.indexOf("facebook.com") != -1) condition = flash.offsetHeight > 180 && flash.offsetWidth > 160 && (flash.offsetHeight / flash.offsetWidth > 255 / 960); else condition = flash.offsetHeight > 180 && flash.offsetWidth > 160 && (flash.offsetHeight / flash.offsetWidth > 255 / 960 && flash.offsetHeight / flash.offsetWidth < 1.2) if (condition) { if (downloadBtnDiv) { ISCore.unbind_mouseover(playerDiv111, downloadBtnDiv); ISCore.deleteAttachedButton(downloadBtnDiv); playerDiv111 = null; downloadBtnDiv = null; } var invokeURL = "pageUrl=" + videoURL ; //if(videoURL.indexOf("nicovideo.jp") != -1) { invokeURL += "-WS-GUES-"; invokeURL += "cookies=" + document.cookie ; } downloadBtnDiv = ISCore.attachButtonDiv(ISCore.targetObject(event), ISExtensionConfig.getDownloadButtonPosition(), "", ISExtensionConfig.getInvokeProtocol() + ISCore.base64Encode(invokeURL)); playerDiv111 = ISCore.targetObject(event).parentNode; if (ISCore.getBrowserIndent() != "firefox") { if (playerDiv111 instanceof HTMLObjectElement || playerDiv111 instanceof HTMLEmbedElement) { playerDiv111 = playerDiv111.parentNode; } }else{ if ((playerDiv111.toString().indexOf("HTMLObjectElement")!= -1) || (playerDiv111.toString().indexOf("HTMLEmbedElement") != -1)) { playerDiv111 = playerDiv111.parentNode; } } ISCore.bind_mouseover(playerDiv111, downloadBtnDiv); ISCore.showElement(downloadBtnDiv); } } } function handleBeforeLoadEvent(event) { element = ISCore.targetObject(event); try { if (isHTML5 == false) isHTML5 = (element.toString().indexOf("HTMLVideoElement")!= -1) ; } catch(ex) { } htmlFive(element); } var url = document.location.href; var isHTML5 = false; if(url.indexOf("vimeo.com") != -1) { document.addEventListener("beforeload", handleBeforeLoadEvent, true); document.addEventListener("mouseover", handleMouseoverEvent, false); } else { document.addEventListener("mouseover", handleMouseoverEvent, false); } })();_text/javascript_Qsafari-extension://com.wondershare.safari.itubestudio-YZC2T44ZDX/2fde7611/Core.jsOCbplist0045X$versionX$objectsY$archiverT$top%&,-./0U$null R$3V$classR$6R$1R$9R$4R$7R$2R$5R$0R$8   !#$WNS.base[NS.relative_Qsafari-extension://com.wondershare.safari.itubestudio-YZC2T44ZDX/2fde7611/Core.js'()*Z$classnameX$classesUNSURL)+XNSObject#A_ Eo_text/javascripte#'(12]NSURLResponse3+]NSURLResponse_NSKeyedArchiver67_WebResourceResponse#-27CI`cjmpsvy| )/2;DVYbgux8Oevar AttachStyleEnum = { AttachOuterTopLeft: 0, AttachOuterTopRight: 1, AttachOuterBottomLeft: 2, AttachOuterBottomRight: 3, AttachInnerTopLeft: 4, AttachInnerTopRight: 5, AttachInnerBottomLeft: 6, AttachInnerBottomRight: 7 } var AttchStyleForPlayList = { AttachOuterCenterLeft: 0, AttachOuterCenterRightAtTop: 1, AttachOuterCenterRightAtMiddle: 2 } // 这 里 加 上 了 命 名 空 间 ,调 用 函 数 中 的 变 量 直 接 使 用 ISCore. 这 种 方 式 来 读 取 的 , 其 余 使 用 this. 读 取 。 var ISCore = { // variants attachButtonList: [], isInitialAdjustPos: false, timeout: 500, closetimer: 0, ddmenuitem: 0, timeoutHandle: null, onShowElement: null, onDelayHideElement: null, // functions // Create an New GUID newGuid: function() { var guid = ""; for (var i = 1; i < 32; i++) { var n = Math.floor(Math.random() * 16.0).toString(16); guid += n; if ((i == 8) || (i == 12) || (i == 16) || (i == 20)) guid += "-"; } return guid; }, // Get Previous Sibling Element getPreviousSibling: function(n) { var x = n.previousSibling; while (x.nodeType != 1) { x = x.previousSibling; } return x; }, // Get Element Position getElementPos: function(el) { var ua = window.navigator.userAgent.toLowerCase(); var isOpera = (ua.indexOf('opera') != -1); var isIE = (ua.indexOf('msie') != -1 && !isOpera); // not opera spoof if (el.parentNode === null || (el.style != null && el.style.display == 'none')) { return false; } var parent = null; var pos = []; var box; if (el.getBoundingClientRect) { // IE box = el.getBoundingClientRect(); var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop); var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); return { x: box.left + scrollLeft, y: box.top + scrollTop }; } else if (document.getBoxObjectFor) { // gecko box = document.getBoxObjectFor(el); var borderLeft = (el.style.borderLeftWidth) ? parseInt(el.style.borderLeftWidth) : 0; var borderTop = (el.style.borderTopWidth) ? parseInt(el.style.borderTopWidth) : 0; pos = [box.x - borderLeft, box.y - borderTop]; } else { // safari & opera pos = [el.offsetLeft, el.offsetTop]; parent = el.offsetParent; if (parent != el) { while (parent) { pos[0] += parent.offsetLeft; pos[1] += parent.offsetTop; parent = parent.offsetParent; } } if (ua.indexOf('opera') != -1 || (ua.indexOf('safari') != -1 && (el.style != null && el.style.position == 'absolute'))) { pos[0] -= document.body.offsetLeft; pos[1] -= document.body.offsetTop; } } if (el.parentNode) { parent = el.parentNode; } else { parent = null; } while (parent && parent.tagName != 'BODY' && parent.tagName != 'HTML') { // account for any scrolled ancestors pos[0] -= parent.scrollLeft; pos[1] -= parent.scrollTop; if (parent.parentNode) { parent = parent.parentNode; } else { parent = null; } } return { x: pos[0], y: pos[1] }; }, /* getElementLeft: function(element) { var actualLeft = element.offsetLeft; var current = element.offsetParent; while (current !== null){ actualLeft += current.offsetLeft; current = current.offsetParent; } return actualLeft; }, getElementTop: function(element) { var actualTop = element.offsetTop; var current = element.offsetParent; while (current !== null){ actualTop += current.offsetTop; current = current.offsetParent; } return actualTop; }, */ // the Element is visiabled( 可 能 不 能 跨 浏 览 器) isVisible: function(element) { return (element.clientHeight > 0 || element.clientWidth > 0); }, // Calculate the Button Postion calculateButtonPos: function(attachedElement, buttonDiv, attachStyle) { // alter the button's position var btnWidth = buttonDiv.offsetWidth; var btnHeight = buttonDiv.offsetHeight; var pos = this.getElementPos(attachedElement); var beforeChildLeft = pos.x; var beforeChildTop = pos.y; var divLeft = 0; var divTop = 0; switch (attachStyle) { case AttachStyleEnum.AttachOuterTopLeft: { divLeft = beforeChildLeft; divTop = beforeChildTop - btnHeight; break; } case AttachStyleEnum.AttachOuterTopRight: { divLeft = beforeChildLeft + attachedElement.offsetWidth - btnWidth; divTop = beforeChildTop - btnHeight; break; } case AttachStyleEnum.AttachOuterBottomLeft: { divLeft = beforeChildLeft; divTop = beforeChildTop + attachedElement.offsetHeight; break; } case AttachStyleEnum.AttachOuterBottomRight: { divLeft = beforeChildLeft + attachedElement.offsetWidth - btnWidth; divTop = beforeChildTop + attachedElement.offsetHeight; break; } case AttachStyleEnum.AttachInnerTopLeft: { divLeft = beforeChildLeft; divTop = beforeChildTop; break; } case AttachStyleEnum.AttachInnerTopRight: { divLeft = beforeChildLeft + attachedElement.offsetWidth - btnWidth; divTop = beforeChildTop; break; } case AttachStyleEnum.AttachInnerBottomLeft: { divLeft = beforeChildLeft; divTop = beforeChildTop + attachedElement.offsetHeight - btnHeight; break; } case AttachStyleEnum.AttachInnerBottomRight: { divLeft = beforeChildLeft + attachedElement.offsetWidth - btnWidth; divTop = beforeChildTop + attachedElement.offsetHeight - btnHeight; break; } } return { x: divLeft, y: divTop }; }, // Get The Download Button Element getButtonElement: function(attachedElement) { for (var i = 0; i < ISCore.attachButtonList.length; i++) { if (attachedElement == ISCore.attachButtonList[i].attachedElement) return ISCore.attachButtonList[i].buttonDiv; } }, // Adjuest The Download Button Element adjustAttachButtonPos: function() { for (var i = 0; i < ISCore.attachButtonList.length; i++) { attachedElement = ISCore.attachButtonList[i].attachedElement; buttonDiv = ISCore.attachButtonList[i].buttonDiv; attachStyle = ISCore.attachButtonList[i].attachStyle; var divPos = ISCore.calculateButtonPos(attachedElement, buttonDiv, attachStyle); buttonDiv.style.left = divPos.x.toString() + 'px'; buttonDiv.style.top = divPos.y.toString() + 'px'; } }, // Delete The Download Button deleteAttachedButton: function(button) { for (var i = 0; i < ISCore.attachButtonList.length; i++) { if (ISCore.attachButtonList[i].buttonDiv === button) { ISCore.attachButtonList.splice(i, 1); document.body.removeChild(button); break; } } }, // 附 加 按 钮 attachButtonDiv: function(attachedElement, attachStyle, buttonCaption, buttonLink, divId, buttonId) { // Create div element if (!attachedElement) return; var downloadDiv = document.createElement("div"); // downloadDiv.setAttribute("id", "ws"); //[safari] downloadDiv.setAttribute("style", "z-index: 2147483647; background: transparent; position: absolute;"); if (divId) downloadDiv.setAttribute("id", divId); downloadDiv.style.visibility = 'hidden'; // Create button element var btnDownload = document.createElement("a"); btnDownload.setAttribute("class", "fantasybutton"); if(this.getBrowserIndent() == "firefox") btnDownload.setAttribute("href", buttonLink); else if(this.getBrowserIndent() == "chrome") btnDownload.setAttribute("onclick", 'ISCore.test("' + buttonLink + '");'); else if(this.getBrowserIndent() == "safari") { //btnDownload.setAttribute("href", "javascript:void(0);"); btnDownload.setAttribute("href", buttonLink); //btnDownload.addEventListener("click", function(){this.blur(); window.location.href = buttonLink; downloadDiv.style.visibility = 'hidden'; return false; }); btnDownload.addEventListener("click", function(){this.blur(); downloadDiv.style.visibility = 'hidden'; return false; }); } btnDownload.style.cursor = "pointer"; var btnText = document.createElement("span"); if (buttonCaption) btnText.innerHTML = buttonCaption; btnDownload.appendChild(btnText); downloadDiv.appendChild(btnDownload); var body = document.body; body.insertBefore(downloadDiv, body.lastChild); var divPos = this.calculateButtonPos(attachedElement, downloadDiv, attachStyle); downloadDiv.style.left = divPos.x.toString() + 'px'; downloadDiv.style.top = divPos.y.toString() + 'px'; // initial onresize event if (!this.isInitialAdjustPos) { window.addEventListener("resize", ISCore.adjustAttachButtonPos, false); //window.addEventListener("DOMNodeInserted", ISCore.adjustAttachButtonPos, false); this.isInitialAdjustPos = true; } // push attachButtonInfo into attachButtonList var attachButtonInfo = {attachedElement: attachedElement, buttonDiv: downloadDiv, attachStyle: attachStyle}; ISCore.attachButtonList.push(attachButtonInfo); return downloadDiv; }, // 下 拉 菜 单 相 关 //////////////////// dropdown menu global variants and functions //////////////////// // open hidden layer mopen: function(id) { // cancel close timer ISCore.mcancelclosetime(); // close old layer if (ISCore.ddmenuitem) ISCore.ddmenuitem.style.visibility = 'hidden'; // get new layer and show it ISCore.ddmenuitem = document.getElementById(id); if (ISCore.ddmenuitem) { ISCore.ddmenuitem.style.visibility = 'visible'; } }, // close showed layer mclose: function() { if (ISCore.ddmenuitem) ISCore.ddmenuitem.style.visibility = 'hidden'; }, // go close timer mclosetime: function() { ISCore.closetimer = window.setTimeout(ISCore.mclose, ISCore.timeout); }, // cancel close timer mcancelclosetime: function() { if (ISCore.closetimer) { window.clearTimeout(ISCore.closetimer); ISCore.closetimer = null; } }, showElement: function(tipElement) { if (ISCore.timeoutHandle) clearTimeout(this.timeoutHandle); if (tipElement) { tipElement.style.visibility = "visible"; } }, openExternalLink: function(url) { var strScript = '