import {fetch} from 'wix-fetch'; function parseRetsXml(xml) { const parser = new DOMParser(); const xmlDoc = parser.parseFromString(xml, "text/xml"); const retsNode = xmlDoc.getElementsByTagName("RETS")[0]; const replyCode = retsNode.getAttribute("ReplyCode"); const replyText = retsNode.getAttribute("ReplyText"); const loginUrl = retsNode.getAttribute("Login"); const searchUrl = retsNode.getAttribute("Search"); return { replyCode, replyText, loginUrl, searchUrl }; } async function searchMLS(xml, query) { const retsInfo = parseRetsXml(xml); const response = await fetch(retsInfo.searchUrl, { method: 'post', headers: { 'Content-Type': 'application/x-www-form-urlencoded', }, body: `search=${encodeURIComponent(query)}` }); const results = await response.json(); return results; } const xml = ' Broker = MemberName = 79190-RETSIDX James T Morrison MetadataVersion = 8.09.00001 MinMetadataVersion = 8.09.00001 User = 547029,NULL,NULL,NULL Login = Logout = Search = GetMetadata = GetObject = Balance = 0.01 TimeoutSeconds = 1800 '; const query = 'property type:Residential'; searchMLS(xml, query).then(results => { console.log(results); });
top of page
  • Writer's pictureJames T. Morrison R(S)

Captain James Cook

Captain James Cook was a British explorer and navigator who is best known for his voyages to the Pacific Ocean in the late 18th century. He made three voyages to the Pacific, during which he explored and mapped vast areas of the Pacific, including the Hawaiian Islands, New Zealand, and the east coast of Australia. On h

is third voyage, Cook set out in 1776 to explore the Northwest Passage, a sea route through the Arctic that was believed to connect the Atlantic and Pacific Oceans.

Cook's third voyage was plagued by difficulties, including harsh weather conditions and a lack of fresh food and water. In January 1779, Cook and his crew arrived at the Hawaiian Islands, where they were greeted by the native Hawaiians. Cook was initially welcomed by the Hawaiians, who gave him gifts and provided him with food and water. However, tensions soon began to rise between Cook and the Hawaiians, as Cook and his crew began to take advantage of the islanders' generosity and began to demand more and more resources.

In February 1779, Cook and his crew attempted to take a Hawaiian chief hostage in order to force the islanders to provide them with more supplies. This led to a violent confrontation between Cook and the Hawaiians, during which Cook was killed. Cook's death was met with great sadness and mourning by his crew, but it was also met with great disdain by the native Hawaiians, who saw Cook as a ruthless and exploitative invader.

In the years since Cook's death, his methods and legacy have been the subject of much controversy. Many modern historians argue that Cook was a ruthless and exploitative invader who took advantage of the native peoples he encountered and that his voyages were responsible for the destruction of many indigenous cultures. Native Hawaiians in particular have long held a deep disdain for Cook, seeing him as a symbol of the colonization and oppression that they have endured for centuries.

Despite this, Cook's voyages were instrumental in opening up the Pacific to European exploration and trade, and his contributions to cartography and navigation have been widely recognized. However, it is important to acknowledge and understand the negative impact his actions had on the native peoples he encountered and to remember the ongoing legacy of colonization and oppression that still affects many of these communities today.

0 views0 comments

Recent Posts

See All
  • Facebook
  • Instagram
  • Yelp
bottom of page